On 3/5/2011 11:05 AM, Carlos Carvalho wrote:
I'm trying to limit the connection rate for internal (mynetworks)
clients, with some exceptions. I did

smtpd_client_message_rate_limit = 2
smtpd_client_event_limit_exceptions = allowed1.my.domain allowed2.my.domain 
!.my.domain

It works for the allowed ones but not for !.my.domain; these are still
limited. I tried !$mynetworks and !192.168.0.0/16 also to no avail.
What's wrong?


Sounds as if what you want is

smtpd_client_event_limit_exceptions =
   allowed1
   allowed2
   !192.168.0.0/16
   static:all


ie. allow the two exceptions, don't match 192.168.x.x, allow anything else.

BTW, better to match the allowed clients by IP rather than hostname.

  -- Noel Jones

Reply via email to