Check outgoing emails send from particular email address

Check outgoing emails from particular email address
cat /var/log/exim_mainlog | grep “<= username@hostname” | wc -l
And incoming as
cat /var/log/exim_mainlog | grep “=> username@hostname” | wc -l
using current date you can find logs as
cat /var/log/exim_mainlog | grep “<= username@hostname” | grep 2009-06-20 | wc -l
Note : Replace username= exact cpanel username and hostname= server hostname

Related posts

Leave a Comment