Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-13 23:57 UTC

Message

Odd behaviour in simultaneous ratelimits

2016-09-14 by maren.zubizarreta@...

Hello Again:


After the success with my authenticated user ratelimit, I was trying to stablish two diferent reatelimit, one per hour and another one per day, applying them to the same matches;


But it doesn't work well, beacuse when I leave the two rules, inmediately the per-hour rule is kicked, even if I leave enough time for the counter to get reset.


Any idea about what is happening, or how else can I do?


It doesn't matter twhich order the rules are set, but once I set the two of themthe hourly ratelimit pops up, and Ican't send even 1 message.



list "IP_MAREN" addr { 158.227.4.29}

#For testing purpouses y change the values here:

ratelimit "limit_1H" rcpt 2 / 1m key "%M{auth_authen}"

ratelimit "limit_1D" rcpt 3 / 1h key "%M{auth_authen}"

sm_macro "null" "{auth_authen}" unset

sm_macro "users_macro" "{auth_authen}" /sckmailin22\|lgszuhom/


racl blacklist not sm_macro "null" not sm_macro"users_macro" list "IP_MAREN" ratelimit "limit_1H" msg "Daily Quota exceeded"


racl blacklist not sm_macro "null" not sm_macro"users_macro" list "IP_MAREN" ratelimit "limit_1D" msg "Hourly quota exceeded"



Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.