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.
/etc/postfix/postfwd.cf
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/postfwd.cf -C
/etc/postfix/main.cf файлд
127.0.0.1:10040_time_limit = 3600 smtpd_recipient_restrictions = permit_mynetworks reject_unauth_destination check_policy_service inet:127.0.0.1:10040