As I understand it, in your example you are acounting all mesages, but you can tune this using "key", for example:
ratelimit "spam hosts" rcpt 25 / 3h key "%f" -->it accounts messages with the same from
ratelimit "spam hosts" rcpt 25 / 3h key "%i" -->it accounts messages with the same IP
ratelimit "spam hosts" rcpt 25 / 3h key "%f%i" -->it accounts messages with the same from and IP
As for my problem I have already tested successfully the schema given by Can:
list "MY_IP" addr { 158.227.4.29}
ratelimit "limite_1H" rcpt 1 / 1m key "%M{auth_authen}"
sm_macro "null" "{auth_authen}" unset
sm_macro "user1_macro" "{auth_authen}" "user1"
racl blacklist not sm_macro "null" not sm_macro"user1_macro" list "MY_IP" ratelimit "limite_1H" msg "Quota exceeded"
Now, I would like to change the user name, so that I vcan have a list of then instead of one macro per user,
I have read that I can use regexp here using slashes:
sm_macro "user1_macro" "{auth_authen}" /user1|user2/
I'd like to ask if this is correct, or I should rather use a user_s list or something else.
Thanks
Maren