How to manage the mail queue in exim

REMOVE MAILS BY ID
/usr/sbin/exim -v -Mrm (MAIL ID HERE)

LIST QUEUED MAILS
/usr/sbin/exim -bp

OUTPUT NUMBER OF QUEUED MAILS
/usr/sbin/exim -bpc

DELETE FROZEN MAILS
/usr/sbin/exim -bpr | grep ‘*** frozen ***’ | awk ‘{print $3}’ | xargs exim -Mrm

DELIVER FORCEFULLY EMAILS
/usr/sbin/exim -qff -v -C /etc/exim.conf &

FREEZE MAILS FROM SENDER
/usr/sbin/exiqgrep -i -f (MAIL ADDRESS HERE) | xargs exim -Mf

REMOVE MAILS FROM SENDER
/usr/sbin/exiqgrep -i -f (MAIL ADDRESS HERE) | xargs exim -Mrm

FORCE DELIVERY OF ONE MESSAGE
exim -M email-id

FORCE ANOTHER QUEUE RUN
exim -qf

FORCE ANOTHER QUEUE RUN & ATTEMPT TO FLUSH THE FROZEN MAILS
exim -qff

VIEW LOG OF MESSAGE
exim -Mvl messageID

VIEW BODY OF MESSAGE
exim -Mvb messageID

VIEW HEADER OF MESSAGE
exim -Mvh messageID

REMOVE MESSAGE WITHOUT ANY ERROR
exim -Mrm messageID

GIVEUP & FAIL MESSAGE TO BOUNE THE MESSAGE TO THE SENDER
exim -Mg messageID

NO OF EMAILS IN QUEUE
exim -bpr | grep “<” | wc -l

NO OF FROZEN EMAILS IN A QUEUE
exim -bpr | grep frozen | wc -l

REMOVE MAILS BY ID
/usr/sbin/exim -v -Mrm (MAIL ID HERE)

LIST QUEUED MAILS
/usr/sbin/exim -bp

OUTPUT NUMBER OF QUEUED MAILS
/usr/sbin/exim -bpc

DELETE FROZEN MAILS
/usr/sbin/exim -bpr | grep ‘*** frozen ***’ | awk ‘{print $3}’ | xargs exim -Mrm

DELIVER FORCEFULLY EMAILS
/usr/sbin/exim -qff -v -C /etc/exim.conf &

FREEZE MAILS FROM SENDER
/usr/sbin/exiqgrep -i -f (MAIL ADDRESS HERE) | xargs exim -Mf

REMOVE MAILS FROM SENDER
/usr/sbin/exiqgrep -i -f (MAIL ADDRESS HERE) | xargs exim -Mrm

TO FORCE EXIM TO DELIVER A EMAIL
exim -qff -v

HOW TO CHECK MAIL QUEUE FOR A PARTICULAR ACCOUNT
exim –bp | exiqsumm > spamm.txt

After executing this a command you will get the result in spamm.txt file. This command takes time for execussion. Execute this command when the load of the server is below min.

Tagged . Bookmark the permalink.

One Response to How to manage the mail queue in exim

  1. Good job! Thanks for this sort of interesting stuff as I had been able to discover here. I agree with most of what is written right here and I’ll be returning to this site again.

Leave a Reply