Using process priority to throttle inbound SMTP

Tony Finch dot at DOTAT.AT
Tue Jun 8 14:35:13 IST 2004


I use a different technique on my servers, because the load from scanning
email is pretty much constant. Deciding not to accept email based on load
is not very effective. What I do instead is count the number of messages
in the incoming queue, and defer email if this number is too large (i.e.
the machine is backlogged). This is very easy to do with Exim. In my
RCPT ACL I have:

  defer message = Sorry, too busy. Try again later.
        condition = ${run {/opt/exim/bin/exim -bpc -DSPOOL=/spool/exim.in} \
                          {${if >{$value}{300} {yes} {no} }} {no} }

Tony.
--
f.a.n.finch  <dot at dotat.at>  http://dotat.at/
ST DAVIDS HEAD TO COLWYN BAY, INCLUDING ST GEORGES CHANNEL: EAST TO SOUTHEAST
3 OR 4, GRADUALLY VEERING SOUTHWEST. MAINLY FAIR. MODERATE WITH FOG PATCHES.
SLIGHT.

-------------------------- MailScanner list ----------------------
To leave, send    leave mailscanner    to jiscmail at jiscmail.ac.uk
Before posting, please see the Most Asked Questions at
http://www.mailscanner.biz/maq/     and the archives at
http://www.jiscmail.ac.uk/lists/mailscanner.html



More information about the MailScanner mailing list