Saturday, 21 January 2012

cpanel spamers

How to detect spammers in exim server cPanel??

In cPanel server exim stats is one of the useful command to find all the information you need were many do not use the command to detect the spammers. Here is the command to detect the spammers via exim stat. You can simply check the exim stat and detect the possible spammers in the cPanel servers.

Execute the following command.
/usr/sbin/eximstats -t10 /var/log/exim_mainlog > /root/stats.txt


t10 = top 10 counts of the following


The above command gives the following details:

- top 10 local destinations by volume
- top 10 local destinations by message count
- top 10 sending hosts by volume
- top 10 sending hosts by message count


Also it will give the output of top 10 email id or user sending the spam mails. Current email stats of exim and many

Now all the out put will be stored in the text file in /root/stats.txt. You can just "cat" that text file or you can simply use less to vi the details. Using the details appended in the text file you can find the spammers.

No comments: