OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: how to configure smtpd_client_recipient_rate_limit for different clients?

From: Wietse Venema (wietseporcupine.org)
Date: Sun Jul 02 2006 - 19:36:47 CDT


Carlos Carvalho:
> I'd like to have different smtpd_client_recipient_rate_limit's for
> different clients. Is there a way to configure this? I've only found
> this post from Wietse:
>
> http://archives.neohapsis.com/archives/postfix/2004-10/0770.html
>
> However a grep in the sources for smtpd_client_recipient_rate_limit_maps
> gives nothing so it doesn't seem to be implemented...

You could also search the documentation.

> If it doesn't really exist I'd be content for the time being to apply
> limits to the internal clients only, so a way to say ! $mynetworks
> would be enough. Is this possible?

According to that same documentation that I referred to a while
ago, you can exclude clients from all smtpd_client_xxx limits:

smtpd_client_event_limit_exceptions (default: $mynetworks)
   Clients that are excluded from connection count, connection rate, or
   SMTP request rate restrictions. See the mynetworks parameter descrip-
   tion for the parameter value syntax.

mynetworks (default: see postconf -d output)
   ...
   Specify a list of [...] Specify "!pattern" to exclude an
   address or network block from the list.

So you need something like:

    smtpd_client_event_limit_exceptions = !1.2.3.4/5 static:all

        Wietse