Postfix + Postfwd

Дусал нэвтэрхий толь-с
apt-get install postfwd

After that you can run or stop postfwd using systemd, init or script /etc/init.d/postfwd.

To change default arguments with which postfwd is run, edit file /etc/default/postfwd.


id=R001; sender=~/.*/; action=rate(sender/60/86400/REJECT only 60 messages per day for $$sender)
id=R002; sender=~/.*/; action=rate(sender/20/3600/REJECT only 20 messages per hour for $$sender)

тохиргоог шалгах:

postfwd -f /etc/postfix/ -C

/etc/postfix/ файлд   = 3600
smtpd_recipient_restrictions = permit_mynetworks
                               check_policy_service inet: