On Linux Server you may check incoming and outgoing mail log for an individual email or a domain.
Just use the following command from an SSH tunnel:
root@host-server: grep mail@domain.com /var/log/exim_mainlog
For Incoming:
2012-06-19 20:50:35 1SgzlL-0000zV-5n <= mail@domain.com H=am1ehsobe005.hostname.com (x.x.x.x) [213.199.154.208]:31687 P=esmtps X=TLSv1:AES128-SHA:128 S=4277 id=3C9DCC5CAAE5FC4293AA676A2140CC6D0C5DF6@domain.NET T=”Test – Incoming Mail” for mail@domain.com
For Outgoing:
2012-06-19 20:50:35 1SgzlL-0000zV-5n => mail@domain.com H=am1ehsobe005.hostname.com (x.x.x.x) [213.199.154.208]:31687 P=esmtps X=TLSv1:AES128-SHA:128 S=4277 id=3C9DCC5CAAE5FC4293AA676A2140CC6D0C5DF6@domain.NET T=”Test – Outgoing Mail”
To check domain full log of incoming & outgoing mail just use the following command:
root@host-server: grep domain-name.com /var/log/exim_mainlog
Phillis says
This site was… how do I say it? Relevant!! Finally
I have found something that helped me. Thanks a lot!
Nick says
Does this work for websites hosted on Gmail? Do I just input the command into terminal on my Mac or is some other step needed. Getting back that “/var/log/exim_mainlog” directory doesnt exist
admin says
Gmail will not give you server root access so the function will not work for Gmail. You are requested to use it on Linux based server.