Skip to content

Commit 6f3bd16

Browse files
committed
The check if authentication was properly done is redundant now as of smtpd v0.2.0
See: chrj/smtpd@32be721
1 parent 4e0bf09 commit 6f3bd16

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Diff for: main.go

-4
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,6 @@ func authChecker(peer smtpd.Peer, username string, password string) error {
9494
}
9595

9696
func mailHandler(peer smtpd.Peer, env smtpd.Envelope) error {
97-
if *allowedUsers != "" && peer.Username == "" {
98-
return smtpd.Error{Code: 530, Message: "Authentication Required"}
99-
}
100-
10197
peerIP := ""
10298
if addr, ok := peer.Addr.(*net.TCPAddr); ok {
10399
peerIP = addr.IP.String()

0 commit comments

Comments
 (0)