Page 1 of 1
Sendmail Rate Limit
Posted: Wed 16. Feb 2022, 11:27
by latifolia
Hello,
Can I have information where we can set limit (loosening or tightening) the rate of email sending? Like maybe from 4 mail/sec to 1 mail/sec for users?
Re: Sendmail Rate Limit [SOLVED]
Posted: Thu 17. Feb 2022, 10:42
by Florian
Hallo,
you can install policyd-rate-limit
apt install policyd-rate-limit
http://manpages.ubuntu.com/manpages/foc ... mit.8.html
Or try it with:
smtpd_client_message_rate_limit
https://beamtic.com/rate-limiting-postfix
Re: Sendmail Rate Limit
Posted: Thu 17. Feb 2022, 14:39
by latifolia
Thank you!
I set this on
/etc/postfix/main.cf
Code: Select all
# Prevent SPAM from bcc
smtpd_recipient_limit = 3
smtpd_recipient_overshoot_limit = 3
# Rate-limit mail sending to prevent ABUSE & SPAM (3 mails/60s)
smtpd_client_message_rate_limit = 3
anvil_rate_time_unit = 60s
I can now sleep well knowing my server will not bow to any spammers whenever they hacked into my user mail accounts.