Outgoing/incoming mail stats?

Is there anything there that can show incoming/outgoing stats for each domain email etc?

Having sissues with a client that is trashing my primary mail server as a mailing list - they sending circa 9k emails a week ffs and outlook.com isnt happy with me.

Sam.

Does this help?
grep '<=' /var/log/exim4/mainlog | awk '{print $5}' | grep \@ | sort | uniq -c | sort -nrk1 ; echo ""

1 Like

Thank you very much Felix.

I tried that command and it wasn’t that helpful because I got one count for every single email address in that log and many of them were temporary and auto generated.

After asking AI, I got this one…

grep '<=' /var/log/exim4/mainlog* | awk '{print $5}' | grep '@' | 
awk -F'@' '{print $2}' | 
awk -F. '{if ($(NF-1) == "co" || $(NF-1) == "com" || $(NF-1) == "net" || $(NF-1) == "org" || $(NF-1) == "gov" || $(NF-1) == "edu") print $(NF-2)"."$(NF-1)"."$NF; else print $(NF-1)"."$NF}' | 
sort | uniq -c | sort -nr
1 Like