Postfix Rate Limiting

Following on from the excellent advice here:

https://www.e-rave.nl/rate-limit-incoming-mail-on-postfix

and here:

http://steam.io/2013/04/01/postfix-rate-limiting/

You may want to add the following:

smtpd_client_event_limit_exceptions =

Without it postfix defaults to smtpd_client_event_limit_exceptions = $mynetworks and won’t apply rate rules to hosts within those networks. So if your problem is internal servers hammering your relay then the limits won’t get applied.

Oh, and if you want to test mail delivery by sending it to the relay host from the command line of one of the other servers:

mail -S smtp 10.1.0.63 -s "Test" user@email.com < some.file.of.stuff