diff --git a/main.go b/main.go index 9b03aad0..4be46532 100644 --- a/main.go +++ b/main.go @@ -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()