Saturday, March 1, 2008

qmail queue flush

You could run qmail-clean but that takes a long while.

Here is a quick and easy way to clear all email from the queue.
This will not remove anything it should not remove. It just clears
all email from the queue safely. This is just for qmail.
( Not for use with any other email programs )


1) login to your server via ssh
2) su -
3) wget http://wepraisehim.org/qmailclear.sh
5) sh qmailclear.sh
6) done.
=====================================================================================
If qmail is starting / not starting then you should check if smtp_psa and smtps_psa files in /etc/xinetd.d are not disabled.

/etc/xinetd.d/smtp_psa

/etc/xinetd.d/smtps_psa

change line :

disabled = yes
to
disabled = no

Then restart xinetd service then qmail.
=====================================================================================
Use following command to send a test mail from shell....


echo subject:testing | /var/qmail/bin/qmail-inject email@domain.com

=====================================================================================

No comments: