Aug 13

LinuxMagic has some fine tool that helps you manage your Qmail Queue.

In my case, whenever my mailserver is reaching it’s thresholds for SPAM, i’ll clear the Queue, NOT by deleting messages, but by giving them more age. Whatever fits best for you and your customers, but in my case, i have to clear all the MAILER-DEMON messages from time to time because they stack up in the Queue because the FAKE-SENDER-HOST isn’t reachable.


#stop the qmail-send process
svc -d /service/qmail-send

#make sure no more qmail-remote are running
ps -ax|grep qmail-remote

#give all Mailer Demon Notices a high age.
#Results in a LAST delivery attempt on qmailside.
qmail-remove -i -p "MAILER-DAEMON" -X 0

#startup qmail
svc -u /service/qmail-send

#See the logfiles for the magic to happen
2007-08-13 15:55:52.069062500 delivery 911: failure: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection.
_(#4.4.1)/I'm_not_going_to_try_again;
_this_message_has_been_in_the_queue_too_long./

cheers, good stuff!

Leave a Reply

You must be logged in to post a comment.

Get Adobe Flash playerPlugin by wpburn.com wordpress themes
preload preload preload