Package: clearmailspool Version: 1.0 Revision: 1 Description: Simple script to clear sendmail spool Maintainer: Carsten Klapp License: Public Domain Type: nosource CompileScript: echo "No compile needed" InstallScript: << mkdir -p %i/sbin/ echo '#!/bin/sh' > %i/sbin/%n echo '# %n-%v 2002-09-03' >> %i/sbin/%n echo '#' >> %i/sbin/%n echo '# %n is a handy little script for new admins who are' >> %i/sbin/%n echo '# still learning how to administer sendmail.' >> %i/sbin/%n echo '#' >> %i/sbin/%n echo '# I have some mail sitting in /var/spool/clientmqueue that never' >> %i/sbin/%n echo '# seems to get sent. "mailq -Ac" claims that the queue is empty,' >> %i/sbin/%n echo '# but looking in the directory I see a large amount of held mail.' >> %i/sbin/%n echo '' >> %i/sbin/%n echo 'echo "Sending mail spooled in /var/spool/clientmqueue:"' >> %i/sbin/%n echo 'sudo /usr/sbin/sendmail -Ac -q -v' >> %i/sbin/%n chmod ug+x %i/sbin/%n echo 'echo "Done."' >> %i/sbin/%n << DescDetail: << clearmailspool is a handy little script for new admins who are still learning how to administer sendmail. I have some mail sitting in /var/spool/clientmqueue that never seems to get sent. "mailq -Ac" claims that the queue is empty, but looking in the directory I see a large amount of held mail. This sendmail invocation will unclog your mail spool: /usr/sbin/sendmail -Ac -q -v <<