Sunday, February 26, 2017

Finding spam on cPanel server

You can find the spam on cPanel server using below script. It will help you to find exact location of spam mail script and user sending spam.


grep cwd /var/log/exim_mainlog | grep -v /var/spool | awk -F"cwd=" '{print $2}' | awk '{print $1}' | sort | uniq -c | sort -n


No comments:

Post a Comment