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.

Usage:

[[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

Arunlal Ashok

Linux Server Administrator. I'm dealing with Linux servers since 2012. I started this blog to share and discuss my ideas with the world. Check My Profile!! in uPwork (oDesk) and let me know if you need any assistance. Thanks!!

You may also like...

3 Responses

  1. Ninoy says:

    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,

    [[email protected]]# 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 🙂

  1. January 11, 2014

    […] links: Exim Log line flags Exim command to find the mail that we have sent is completed or not(Unix/Linux) Check spamming on server having EXIM Quick way to remove all frozen emails from mail queue […]

Leave a Reply

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