Sendmail Rate Limit  [SOLVED]

Discussions about the usage of KeyHelp.
Post Reply
User avatar
latifolia
Posts: 42
Joined: Wed 18. Aug 2021, 09:08

Sendmail Rate Limit

Post 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?
User avatar
Florian
Keyweb AG
Posts: 1243
Joined: Wed 20. Jan 2016, 02:28

Re: Sendmail Rate Limit  [SOLVED]

Post 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
Mit freundlichen Grüßen / Best regards
Florian Cheno

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
latifolia
Posts: 42
Joined: Wed 18. Aug 2021, 09:08

Re: Sendmail Rate Limit

Post 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.
Post Reply