Solution How to clean an Exim queue is as follows :-
1) How to clean an Exim queue
2) Using WebHost Manager
3) Advanced Users
4) Very Advanced Users
--------------------------------------------------------------------------------------------
--Using WebHost Manager--
1. Login to WHM.
2. On the Main page, click on the email icon.
3. In the mail menu, select "Manage Mail Queue".
* Note:-( Instead of steps 2 & 3, you can select "Manage Mail Queue from the left margin.)
4. Find the message you wish to delete & select "Delete".
--------------------------------------------------------------------------------------------
--Advanced Users--
There  are many times when a mail queue may become filled with what is  essentially junk mail, At extreme levels, this can cause high load & delayed mail delivery.
You can use a variation of the following command via a shell prompt to delete only these junk messages from the mail queue.
grep -lR KEYWORD /var/spool/exim/input/* | xargs rm -f
(This will purge the mail queue of any messages that contain KEYWORD.
Any messages deleted in this manner are IRRETRIEVABLE (aka: Gone for good)
Is this dangerous? You bet it CAN be.)
Let's look at an example:-
Imagine  a case in which users are abusing a bad FormMail.pl installation on  server.fastservers.net. Almost all of these messages will contain the  username "nobody@server.fastservers.net". We want to delete ALL of these  messages, so we would insert "nobody@server.fastservers.net" in place  of "KEYWORD" in the command above.
This will delete all messages in the exim queue that contain the keyword "nobody@server.fastservers.net".
--------------------------------------------------------------------------------------------
--Very Advanced Users--
Grep does regular expressions, This means you can catch tricky spammers with a little mind power.
 For example:-
grep -lRP Vz*Az*Lz*Iz*Uz*M /var/spool/exim/input/* | xargs rm -f
This  command will delete any message containing the letters V, A, L, I, U,  M, in that order, And with 0 or more "z" characters between them. A few  of the keywords it will match are listed:
VALIUM
VzALIUM
VAzLIzUzM
VALzIUM
VzALzIUM
You get the idea.
--------------------------------------------------------------------------------------------
 
No comments:
Post a Comment