Exim - Script for Remove Messages from Queue - Based on body of message

minotauro

Well-Known Member
Jan 19, 2004
89
0
156
Hello,

I need any script to remove messages from my queue based on body (any word) of messages. My servers receive many SPAMs from different senders but with the same content. I don´t like include the filter in /etc/antivirus.exim because it, many times, cause the lost of legitims messages.

Where I find one script to check the body of message, after this message stop in queue, and remove it if find the exact string? Always I see scripts based on header - senders - of messages (using command "exim -bp").

Thanks for any information.

Regards,
Minotauro.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
You shouldn't be messing with messages in the queue - that's the wrong place. You should be checking them on receipt before they even get there. There are 3 main solutions available at the moment for cPanel servers:

1. cPanels implementation of SpamAssassin plus antivirus.exim

2. exiscan

3. MailScanner
 

dolphyn

Well-Known Member
Nov 27, 2001
72
0
306
cPanel Access Level
Root Administrator
minotauro said:
I need any script to remove messages from my queue based on body (any word) of messages.
I have attached a home-grown Perl script that I sometimes use for this purpose. You'll need to edit the script to include whatever string you want to eliminate.

Use it at your own risk.
 

Attachments