OSEC

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

From: Wietse Venema (wietseporcupine.org)
Date: Mon Dec 01 2003 - 14:25:39 CST


Felipe Garcia:
> Wietse Venema wrote:
> >Loic Minier:
> >>Wietse Venema <wietseporcupine.org> - Sun, Nov 30, 2003:
> >>
> >>>I do not understand why this would help. If the server closes the
> >>>connection then the client would connect again. This is how Postfix
> >>>already implements connection caching in the LMTP client.
> >>>
> >> I thought I could limit smtp connections per second with the recent
> >> smtpd_client_connection_count_limit. If there's no more than a message
> >> in a connection, I can limit messages/s too... ;)
> >
> >The correct solution is to limit the number of mail from commands
> >per unit time, not to limit the number of deliveries per session.
> >
> but since this is not avaliable, cutting the connnection after each mail
> will cause a new connection and thus upping the connection count.. but
> each new mail could also up the count for connections and check this at
> every MAIL TO command and then close the connection... just my 2 cent ..

The correct solution is to add code that limits the number of mail
from commands per unit time, not to add code that limits the number
of deliveries per session.

        Wietse