How can MailScanner "push back"?

Julian Field MailScanner at
Thu Aug 23 20:48:27 IST 2007

Hash: SHA1

Leland J. Steinke wrote:
> Maybe I need to write a postfix policy daemon to query the hold queue 
> or otherwise check the box's status and 450-reject the connection if 
> the box is overloaded...
That sounds like the best approach to me. Find the length of the hold 
queue from either direct measurement or watching the logs, and 
450-reject connections if the queue is too large. You could 
alternatively do it without talking to postfix at all by using iptables 
to block connectivity to port 25 when the queue gets too large.

I don't know how hard it is to write a postfix policy daemon :-)


- -- 
Julian Field MEng CITP
Buy the MailScanner book at

MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
For all your IT requirements visit

Version: PGP Desktop 9.6.3 (Build 3017)
Charset: ISO-8859-1


This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
For all your IT requirements visit

More information about the MailScanner mailing list