speed up failure for no boxes
Ted Unangst tedu@tedunangst.com
Wed, 28 Feb 2024 02:16:37 -0500
1 files changed,
6 insertions(+),
1 deletions(-)
jump to
M
deliverator.go
→
deliverator.go
@@ -61,10 +61,12 @@ default:
} } +const nearlyDead = 8 + func lethaldose(err error) int64 { str := err.Error() if strings.Contains(str, "no such host") { - return 8 + return nearlyDead } return 0 }@@ -140,6 +142,9 @@ } else {
box, ok := boxofboxes.Get(rcpt) if !ok { ilog.Printf("failed getting inbox for %s", rcpt) + if doover.Tries < nearlyDead { + doover.Tries = nearlyDead + } sayitagain(doover) return }