mirror of
https://github.com/hanzoai/mail.git
synced 2026-09-23 23:53:02 +00: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:
+1
-1
@@ -274,7 +274,7 @@ binary should be setgid that group:
|
||||
xsavecheckf(err, "parsing our local hostname")
|
||||
|
||||
var remoteHostname dns.Domain
|
||||
if net.ParseIP(submitconf.Host) != nil {
|
||||
if net.ParseIP(submitconf.Host) == nil {
|
||||
remoteHostname, err = dns.ParseDomain(submitconf.Host)
|
||||
xsavecheckf(err, "parsing remote hostname")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user