Hi
I was in the same place some time ago and I use postwfd + others for 600K users and analize via sawmill (probably 6.x)
And conclusion for me
...
First rate is for 1 minut
id=sasl_msg_1min ;  sasl_username=~$$sender ; action=rate(sasl_username/40/60/421 4.7.1: $$sasl_username:
Sorry, send to fast - code EC:40x60)

Seccond rate 5 min
id=sasl_msg_5min ;  sasl_username=~$$sender ; action=rate(sasl_username/100/300/421 4.7.1: $$sasl_username: Sorry, send to fast - code EC:100x300)

and the last bastion va lpolicyd:
500 for 1h and 5000 for 24h Additionally, restrictions from outside the EU

This is limitations only for outgoing


W dniu 2.01.2024 o 13:12, Matus UHLAR - fantomas via Postfix-users pisze:
Hello,

due to spam issue I'm trying to implement rate limits for outgoing mail.

I looked at postfwd and its rate limit looks promising, supporting different limits per IP/sasl_user for internal network, webmail:

http://www.postfwd.org/ratelimits.html

Of course, if there is any other tool that can do that, I'll look.


However, I need to find the limits to set.  Guessing is quite hard as some clients post too many mails, I'd like to have limits safe and not limiting.

Processing past postfix logs to see how many mails to how many recipients were sent by clients in the long run could help much.

Do you have any or know about tool that processes log files to produce statistics usable for limiting?

Thanks.


--
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to