"Postfix + Postfwd"-ны өөр хувилбарууд
Дусал нэвтэрхий толь-с
| 8-р мөр: | 8-р мөр: | ||
/etc/postfix/postfwd.cf | /etc/postfix/postfwd.cf | ||
| − | |||
<pre> | <pre> | ||
id=R001; sender=~/.*/; action=rate(sender/60/86400/REJECT only 60 messages per day for $$sender) | id=R001; sender=~/.*/; action=rate(sender/60/86400/REJECT only 60 messages per day for $$sender) | ||
| 14-р мөр: | 13-р мөр: | ||
</pre> | </pre> | ||
| + | тохиргоог шалгах: | ||
| + | <pre> | ||
postfwd -f /etc/postfix/postfwd.cf -C | postfwd -f /etc/postfix/postfwd.cf -C | ||
| + | <pre> | ||
/etc/postfix/main.cf файлд | /etc/postfix/main.cf файлд | ||
01:05, 17 Хоёрдугаар сар 2019-ий байдлаарх засвар
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
<pre>
/etc/postfix/main.cf файлд
<pre>
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