Difference between revisions of "Postfix"
Jump to navigation
Jump to search
(Created page with "Limit incoming Mail Rate against Spam Scripts: edit main.cf and set: <pre> smtpd_error_sleep_time = 1s smtpd_soft_error_limit = 5 smtpd_hard_error_limit = 10 smtpd_client_con...") |
|||
Line 15: | Line 15: | ||
</pre> | </pre> | ||
− | Result: after 10Mails the | + | Result: after 10Mails the sending IP should by blocked! |
Add "fail2ban" Log Monitor as second wall protection to kick out bad IP's forever! | Add "fail2ban" Log Monitor as second wall protection to kick out bad IP's forever! |
Revision as of 23:47, 22 November 2017
Limit incoming Mail Rate against Spam Scripts:
edit main.cf and set:
smtpd_error_sleep_time = 1s smtpd_soft_error_limit = 5 smtpd_hard_error_limit = 10 smtpd_client_connection_count_limit = 10 smtpd_client_connection_rate_limit = 10
Testing Mail Loop (send a Mail every Second):
while true; do `date | mail -s "Test Postfix" postbox@yourdomain.com`;sleep 1; done
Result: after 10Mails the sending IP should by blocked! Add "fail2ban" Log Monitor as second wall protection to kick out bad IP's forever!