Our features site is undergoing a refresh! Be sure to explore the revamped site and discover our latest product roadmap launching here on Monday, March 18th.

Defer instead of reject (SMTP code 4XX) when max hourly email limit is exceeded

Elías Torres shared this idea 8 years ago
Open Discussion

I'd like exim to return a temporary SMTP error 4xx instead of a permanent one 5xx, issuing a permanent error causes bad behaviour in email clients and end-user frustration (some clientes create a local bounce-like message).


Changing the SMTP response to a temporary error, most email clients will try again emails in the future (using a local queue or "outbox") respecting the hourly limit.In exim changing :fail: to :defer: should accomplish this behaviour, see line 1504 of file /etc/exim.pl.local


$enforce_mail_permissions_data = ":fail: Domain $domain has exceeded the max emails per hour ($currentmail/$maxmails ($percentage\%)) allowed. Message discarded.";

Leave a Comment
 
Attach a file