[Exim] Re: Dumping mail queue after Spam attack

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Suresh Ramasubramanian
Date:  
À: Exim-Users (E-mail)
Nouveaux-sujets: [Exim] Virtual Domain Hosting
Sujet: [Exim] Re: Dumping mail queue after Spam attack
+++ Iain Donaldson [exim-users] <19/09/01 18:09 +0100>:
> Anyway, one of our customers had a spam attack and it's left our exim mailer
> with a queue of duff e-mails (several hundred at least). I need to clear
> them all out, is there an easy way to do this other than kill each one in
> turn or just wait for them to be frozen ?


# exim -Mrm `mailq|grep regexp|cut -c 11-27`

That regexp can be, for example, the from address the spammer has used.

# exim -Mrm `mailq|grep spammer\@idiot\.com|cut -c 11-27`

[those ` are backticks, just below the ~ character - to the left of the 1 on
your keyboard]

> I'm a bit of an exim novice as my exim guru left the company a few weeks ago
> and has not been replaced so any thoughts/help much appreciated.


--
Suresh Ramasubramanian <----> mallet <at> efn dot org
EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin