Sendmail Tricks

   

Changing load average queue limits

Sendmail allows us to easily queue mail or refuse connections if the server load average becomes too high. Modify the QueueLA and/or RefuseLA options in /etc/mail/sendmail.cf (or /etc/sendmail.cf) as appropriate.

# egrep ‘QueueLA|RefuseLA’ /etc/mail/sendmail.cf
O QueueLA=2
O RefuseLA=6

 

View domains that we accept mail for

Need to view contents of w class macro, so…

echo ‘$=w’ | sendmail -bt -d0.4

 

 

Postfix has it’s postsuper command that allows you to simply remove messages from the queue. There are many reasons why you’d want to do this (being overwhelmed by bounces and spam, for example). Sendmail comes with the qtool.pl script as part of it’s source distribution.

qtool.pl can be put to good use removing stale messages from the mail queue. For example, I regularly remove mail from the queue where... ... read more >>> linuxguruz.de.wordpress.com

None
A comma-separated list of terms describing this content. Example: funny, bungee jumping, "Company, Inc.".