mirror of
https://github.com/decke/smtprelay.git
synced 2025-12-25 07:43:06 -07:00
set transient response code on potential temporary error conditions
This commit is contained in:
committed by
Bernhard Fröhlich
parent
d20e3d201c
commit
cafbc78e74
2
main.go
2
main.go
@@ -234,7 +234,7 @@ func mailHandler(peer smtpd.Peer, env smtpd.Envelope) error {
|
||||
"err_msg": err.Msg,
|
||||
}).Error("delivery failed")
|
||||
default:
|
||||
smtpError = smtpd.Error{Code: 554, Message: "Forwarding failed"}
|
||||
smtpError = smtpd.Error{Code: 421, Message: "Forwarding failed"}
|
||||
|
||||
logger.WithError(err).
|
||||
Error("delivery failed")
|
||||
|
||||
Reference in New Issue
Block a user