2
0
forked from drew/smtprelay

The check if authentication was properly done is redundant now as of smtpd v0.2.0

See:	32be721d71
This commit is contained in:
Bernhard Froehlich
2020-06-07 17:17:28 +00:00
parent 4e0bf0908d
commit 6f3bd16988

View File

@@ -94,10 +94,6 @@ func authChecker(peer smtpd.Peer, username string, password string) error {
}
func mailHandler(peer smtpd.Peer, env smtpd.Envelope) error {
if *allowedUsers != "" && peer.Username == "" {
return smtpd.Error{Code: 530, Message: "Authentication Required"}
}
peerIP := ""
if addr, ok := peer.Addr.(*net.TCPAddr); ok {
peerIP = addr.IP.String()