Fine email spammer on server

KevinHV

Member
Registered
Joined
Sep 8, 2016
Messages
57
Points
8
Hello

Most of the time shared / reseller hosting server IP get blacklisted due to spammer and its very easy to find spammer and directory from which spamming is going on.

To get a sorted list of email sender in exim mail queue. It will show the number of mails send by each one.

# exim -bpr | grep "<" | awk {'print $4'} | cut -d "<" -f 2 | cut -d ">" -f 1 | sort -n | uniq -c | sort -n


The following scripts will check the script that will originate spam mails:

# grep "cwd=/home" /var/log/exim_mainlog | awk '{for(i=1;i<=10;i++){print $i}}' | sort | uniq -c | grep cwd | sort -n


With these 2 commands, you will find spammer and you can take action it.

If anyone else know some more ways to find spammer , please do share.
 

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top