Hey… here is a way to find the message we have sent is COMPLETED or NOT by using “exigrep”. Yep, it’s very useful in some cases, if the client wants to know the email from his account successfully completed or not from the server. Here, we can find out the message ID from the log file and and then we can simply check that particular email completed or not by using exigrep.


[[email protected]]# exigrep 1VT5LJ-0006uV-S1 /var/log/exim_mainlog|grep -i "Completed"
 2013-10-07 11:35:04 1VT5LJ-0006uV-S1 Completed
[[email protected]]# exigrep 1VT4Za-0001Dy-3v /var/log/exim_mainlog|grep -i "Completed"
+++ 1VT4Za-0001Dy-3v has not completed +++

Here “1VT5LJ-0006uV-S1” & “1VT4Za-0001Dy-3v” are message IDs.

If you wand to list all emails status for a particular sender, then change the message ID with that particular emai ID.

exigrep [email protected] /var/log/exim_mainlog|grep -i “Completed”

How is it .. 😀

Related Links:
1, Check spamming on server having EXIM
2, How/Command to find out the spam mailing script’s location – Exim mail server
3, Exim command to remove emails from mail queue for a specific Sender/Receiver – The “exiqgrep” usage
4, Quick way to remove all emails from the mail queue – Exim command line option
5, Simple steps to count emails in Exim mail queue for a specific sender/receiver