Hi,
On 2016-09-08 14:18, maren.zubizarreta@... [milter-greylist] wrote:
> Hello again:
>
> I already tested the regular expression:
> sm_macro "users_macro" "{auth_authen}" /user1|user2/
> and it seems to work well, so now my definitive config will be:
>
> list "MY_NETWORKS" addr { 158.227.4.0/24}
> ratelimit "limite_1H" rcpt 200 / 1h key "%M{auth_authen}"
> sm_macro "null" "{auth_authen}" unset
> sm_macro "users_macro" "{auth_authen}" /user1|user2/
>
> racl blacklist not sm_macro "null" not sm_macro"users_macro" not list
> "MY_NETWORKS" ratelimit "limite_1H" msg "Quota exceeded"
Thanks for your example. I tried your rule set, which is placed before
"racl greylist list "grey users" ..." in the config, but it's not
working here:
-------
# Limit Test
list "MY_NETWORKS" addr { 192.168.100.0/24}
ratelimit "limite_1H" rcpt 2 / 1h key "%M{auth_authen}"
sm_macro "null" "{auth_authen}" unset
sm_macro "users_macro" "{auth_authen}" /user1|user2/
racl blacklist not sm_macro "null" not sm_macro "users_macro" not list
"MY_NETWORKS" ratelimit "limite_1H" msg "Quota exceeded"
-------
grep auth_authen sendmail.cf:
O Milter.macros.envfrom=i, {auth_type}, {auth_authen}, {auth_ssf},
{auth_author}, {mail_mailer}, {mail_host}, {mail_addr}
...
sendmail.mc:
INPUT_MAIL_FILTER(`greylist',`S=inet:12345@internalscanhost, F=,
T=S:1m;R:1m')dnl
mail.log says:
Sep 8 19:10:50 internalscanhost milter-greylist: User testuser1
authenticated, bypassing greylisting
Andy ideas?
Ciao
MarcusMessage
Re: [milter-greylist] Ratelimit per authenticated user
2016-09-08 by Marcus Schopen
Attachments
- No local attachments were found for this message.