Managing the Qmail queue


or for more detailed info:

qmail configuration:

list count of email addresses in queue
grep -h "^From:" /var/qmail/queue/mess/*/* | sort | uniq -d -c

for big big queues: (will take a while)
find /var/qmail/queue/mess/21/  -type f -print0 | xargs -0 -P1 -n64 grep -h "^From:" |sort | uniq -d -c

search through queue for all email headers/bodies:
cd /var/qmail/queue/mess; cat */* | less
/search for address in queue here

so to get a list of all remote addresses
cat /var/qmail/queue/remote/*/* | tr '\0' '\n'
cat /var/qmail/queue/local/*/* | tr '\0' '\n' for the local delivery queue

kick queue and attempt redelivery
/var/qmail/bin/qmail-tcpok; killall -ALRM qmail-send

qmHandle is a useful tool with more features.

You can leave a response, or trackback from your own site.

Leave a Reply