Exim command to check mail from single domain

To resolve the spam E-mail issue, we can run the following command and count the mains sent by single domain.

exim -bp | tr ‘\n’ + | sed -e “s/++/=/g” | tr -d + | tr = ‘\n’ | awk ‘{print $5}’ | sort -n | uniq -c | sort -n | grep @test123.com


About Anant 373 Articles
Senior technical writer