From 6f3bd16988bf6f2af2c16edfc46bfae5ccee64f5 Mon Sep 17 00:00:00 2001 From: Bernhard Froehlich Date: Sun, 7 Jun 2020 17:17:28 +0000 Subject: [PATCH] The check if authentication was properly done is redundant now as of smtpd v0.2.0 See: https://github.com/chrj/smtpd/commit/32be721d714c49abba11b0a3ba006ed6d8d50d8c --- main.go | 4 ---- 1 file changed, 4 deletions(-) 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()