mirror of
https://github.com/decke/smtprelay.git
synced 2025-12-25 07:43:06 -07:00
Add log message for successful delivery
This commit is contained in:
2
main.go
2
main.go
@@ -145,6 +145,8 @@ func mailHandler(peer smtpd.Peer, env smtpd.Envelope) error {
|
|||||||
return smtpd.Error{Code: 554, Message: "Forwarding failed"}
|
return smtpd.Error{Code: 554, Message: "Forwarding failed"}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Printf("%s delivery successful\n", env.Recipients)
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user