Exim command to find the mail that we have sent is completed or not(Unix/Linux)

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.


[root@server]# exigrep 1VT5LJ-0006uV-S1 /var/log/exim_mainlog|grep -i "Completed"
 2013-10-07 11:35:04 1VT5LJ-0006uV-S1 Completed
[root@server]# 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

Post navigation

Arunlal A

Senior System Developer at Zeta. Linux lover. Traveller. Let's connect! Whether you're a seasoned DevOps pro or just starting your journey, I'm always eager to engage with like-minded individuals. Follow my blog for regular updates, connect on social media, and let's embark on this DevOps adventure together! Happy coding and deploying!

3 thoughts on “Exim command to find the mail that we have sent is completed or not(Unix/Linux)

  1. Hey Arun,
    I had recently came to see this site and I must say you are rocking 🙂
    The site is simply superb and informative.I am also working in the same industry and all most the issues you have explained in the article are relevant. I have a small suggestion to the above explained command.

    It will be better to use the email address instead of message ID right ?? like,

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

    So that you will get the list completed emails from the account.

    This is just my opinion. Any ways ALL THE BEST AND KEEP POSTING 🙂

Leave a Reply

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