Skip to content

Commit

Permalink
The check if authentication was properly done is redundant now as of …
Browse files Browse the repository at this point in the history
…smtpd v0.2.0

See:	chrj/smtpd@32be721
  • Loading branch information
decke committed Jun 7, 2020
1 parent 4e0bf09 commit 6f3bd16
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6f3bd16

Please sign in to comment.