On Sat, Nov 24, 2012 at 10:06:10PM +1100, Russell Coker wrote:
Is there some way of limiting how many messages a
smtpd process will
accept before it exits? I'd like to force it to exit after processing
10 or 20 messages so that SASL authentication has to be completed
again for the next 10 or 20 messages.
have you tried changing smtpd_client_message_rate_limit ?
smtpd(8) says:
smtpd_client_message_rate_limit (0)
The maximal number of message delivery requests that any client
is allowed to make to this service per time unit, regardless of
whether or not Postfix actually accepts those messages.
also worth looking at:
smtpd_client_recipient_rate_limit (0)
The maximal number of recipient addresses that any client is
allowed to send to this service per time unit, regardless of
whether or not Postfix actually accepts those recipients.
defaults for both are 0 (unlimited).
both of these will affect legitmate client connections, and may
interfere with legitimate multi-recipient mail (bccs or mailing lists,
for example - decent MTAs or mailing list managers will likely cope,
crapware running on microsoft operating systems probably won't as mail
programs for MS OSes are traditionally written by brain-dead morons who
don't have a clue about mail).
craig
--
craig sanders <cas(a)taz.net.au>