R-Ts NetWorks

Server the Best

HOWTO: Catching spammer on cPanel based server.


If you see many processes of exim then you can check exim in more detail. shows the total no of email in qmail.
Print a listing of the messages in the queue:

#exim –bpc

Shows no of frozen emails:

#exim -bpr | grep frozen | wc -l

To remove FROZEN mails from the server:

#exim -bp | exiqgrep -i | xargs exim -Mrm

To shows the domain name and the no of emails sent by that domain:

#exim -bp | exiqsumm | more

Check if any php script is causing the mass mailing with:

#cd /var/spool/exim/input && egrep “X-PHP-Script” * -R

Just cat the ID that you get and you will be able to check which script is here causing problem for you.
To Remove particular email account email:

#exim -bpr |grep “example.com”|awk {‘print $3′}|xargs exim -Mrm

Advertisements

November 24, 2012 - Posted by | Linux

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: