LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Command to find mails sent by particular user on a particular date on centos 6 (https://www.linuxquestions.org/questions/linux-server-73/command-to-find-mails-sent-by-particular-user-on-a-particular-date-on-centos-6-a-4175544328/)

SarahGurung 06-02-2015 11:04 PM

Command to find mails sent by particular user on a particular date on centos 6
 
Hello,

Well i have a particular user which sends mails to customers. Now i want to find out the mails sent by that user on a particular date. How do i do that in linux using command? Can i also find successful delivery of mails by that user. I am running it on centos 6 server and use postfix.

MensaWater 06-03-2015 01:54 PM

/var/log/maillog is where mail operations are logged. (You should also have other /var/log/maillog* files based on how you have log rotation setup.)

From that log you can see who the sender is and who the recipient is along with timestamps and whether the email was sent successfully. What you will NOT be able to see is what was in the message.


All times are GMT -5. The time now is 03:09 PM.