Exim Commands

Exim commands for Mail issue
=====================

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

/usr/sbin/exim -bp ==> LIST QUEUED MAILS

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

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

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

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

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

exim -M email-id ==> Force delivery of one message.

exim -qf ==> Force another queue run.

exim -qff ==> Force another queue run and attempt to flush the frozen message.

exim -Mvl messageID ==> View the log for the message.

exim -Mvb messageID ==> View the body of the message.

exim -Mvh messageID ==> View the header of the message

exim -Mrm messageID ==> Remove message without sending any error message

exim -Mg messageID ==> Giveup and fail message to bounce the message to the Sender

exim -bpr | grep “<” | wc -l ==> How many mails on the Queue?

exim -bpr | grep frozen | wc -l ==> How many Frozen mails on the queue

This entry was posted in Exim, Mail server. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.