Exim Mail queue commands

1) /usr/sbin/exim -M email-id

This command is used to forcefully delivery of one message in a queue. This situation arrices when an urrgent message want to be send but due to long queue is takes time then with this exim command we can send one message forcefully in exim server.

2) /usr/sbin/exim -qf

This command in exim is used to force another queue run.

3) /usr/sbin/exim -qff

This command is used to force another queue run and attempts to flush the frozen message in exim server.

4) /usr/sbin/exim -Mvl messageID

This command is used to see the logs of a message in exim server. Message ID is the id of the message of which we want to see the log.

5) /usr/sbin/exim -Mvb messageID

This command is used to view the body of the message. Message ID is the id given by the exim to that message.

6) /usr/sbin/exim -Mvh messageID

This command is used to view the header part of the message. Message ID is the id given by the exim to that message.

7) /usr/sbin/exim -Mrm messageID

This command is used to remove message without sending any error message. Message ID is the id given by the exim to that message.

8) /usr/sbin/exim -Mg messageID

This command is used to giveup and fail message to bounce the message to the sender. Message ID is the id given by the exim to that message.

9) /usr/sbin/exim -bpr | grep “<” | wc -l

This command is used to know the number of emails in a queue.

10) /usr/sbin/exim -bpr | grep frozen | wc -l

This command is used to know the number of frozen emails in a queue.

11) /usr/sbin/exim -bpr | grep frozen | awk {‘print $3’} | xargs exim -Mrm

This command is used to delete the frozen mails from the queue.