mirror of
https://github.com/mjl-/mox.git
synced 2025-01-14 01:06:27 +03:00
sendmail: bugfix: set remote hostname to verify for tls connections
due to logic bug we weren't setting it, and tls connections would fail with a warning that either the remote hostname must be set or insecurityskipverify must be set.
This commit is contained in:
parent
0b9475271c
commit
b43529a2e9
1 changed files with 1 additions and 1 deletions
|
@ -274,7 +274,7 @@ binary should be setgid that group:
|
||||||
xsavecheckf(err, "parsing our local hostname")
|
xsavecheckf(err, "parsing our local hostname")
|
||||||
|
|
||||||
var remoteHostname dns.Domain
|
var remoteHostname dns.Domain
|
||||||
if net.ParseIP(submitconf.Host) != nil {
|
if net.ParseIP(submitconf.Host) == nil {
|
||||||
remoteHostname, err = dns.ParseDomain(submitconf.Host)
|
remoteHostname, err = dns.ParseDomain(submitconf.Host)
|
||||||
xsavecheckf(err, "parsing remote hostname")
|
xsavecheckf(err, "parsing remote hostname")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue