Re: [exim] Ratelimit

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Heiko Schlittermann
日付:  
To: exim-users
題目: Re: [exim] Ratelimit
Matt <matt.mailinglists@???> (Mo 22 Jul 2013 22:59:21 CEST):
> I have this to slow fast senders.
>
> warn ratelimit = 100 / 1h / per_rcpt / strict
>          delay     = ${eval: ${sg{$sender_rate}{[.].*}{}} -
> $sender_rate_limit }s

>
> I would like to NOT enforce this on authenticated senders since I am
> slowing them elsewhere. I imagine I need to add this (!authenticated
> = *) somewhere but where?


    warn  !authenticated = *
          ratelimit = 100 / 1h / per_rcpt / strict
          delay     = ${eval: ${sg{$sender_rate}{[.].*}{}} - $sender_rate_limit}s


should do it. The order matters. The ratelimit condition should be
evaled *after* the authenticated check, otherwise even the authenticated
connections will count.

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: 7CBF764A -
 gnupg fingerprint: 9288 F17D BBF9 9625 5ABC  285C 26A9 687E 7CBF 764A -
(gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2  7E92 EE4E AC98 48D0 359B)-