OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: limiting SMTP connections

From: Elijah Savage (esavagedigitalrage.org)
Date: Mon Apr 03 2006 - 06:36:58 CDT


Arya, Manish Kumar wrote:
> Thanks guys, it works
>
> smtpd_client_connection_count_limit = 10
> smtpd_client_event_limit_exceptions =
>
> but I am able to this for single IP. is there someway
> to do this for whole network?
>
> Regards,
> -Manish

I do not understand what you mean for a whole network or single ip. This
is set globally. What I mean by that is no matter where you connect from
 those connections would be made to follow those rules so it is set for
the entire network.

Like I said above everyone would be made to follow such rules. With the
smtp_client_event_limit_exceptions = being blank this would even pertain
to customers in your local lan also, it could be a good idea to include
$mynetworks at least or .example.com as your domain.

You have not given a real good scenario of what you are trying to
accomplish and why you want to do such but also keep in mind
smtpd_connection_rate_time_unit default is set to 60 seconds, meaning
with your setting one client would be able to connect a maximum of 10
times in one minute.

--
----------------------------------------------------------------------
 Elijah Savage | AOL IM:layer3rules
 Senior Network Engineer | When it has to be switched or routed.
 http://www.digitalrage.org | The Information Technology News Center
----- http://www.digitalrage.org/?page_id=46 for pgp public key--------