Postfix + Postfwd

Дусал нэвтэрхий толь-с
01:03, 17 Хоёрдугаар сар 2019-ий байдлаарх Almas (Яриа | оруулсан хувь нэмэр) хэрэглэгчийн хийсэн залруулга
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

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