Disable SMTP AUTH on the MTA port

This commit is contained in:
2018-03-07 23:19:00 +00:00
parent 26c702b11c
commit 2ac0975dfc

View File

@@ -31,10 +31,11 @@ func NewServer(cancel context.CancelFunc, datastore store.Interface, submission
if submission {
out.handler = &Sender{}
out.server.Addr = ":587"
out.submission = true // Only allow login on submission ports
out.submission = true // Only allow login on the MSA Port
} else {
out.handler = &Receiver{}
out.server.Addr = ":25"
out.server.AuthDisabled = true // Don't allow login on the MTA port
}
return out