Paper Lantern for cPanel accounts is being retired this year. Find out more »
cPanel & WHM Version 102 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!

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

Elías Torres shared this idea 6 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/

$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