Go Back   cPanel Forums > cPanel® and WHM® (for Linux® and FreeBSD® Servers) > cPanel and WHM Discussions

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-05-2004, 08:04 AM
Registered User
 
Join Date: Jan 2004
Posts: 79
minotauro
Exim - Script for Remove Messages from Queue - Based on body of message

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-05-2004, 01:56 PM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
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
__________________
Jonathan Michaelson
cPanel Forum Moderator

Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-23-2004, 06:15 PM
Registered User
 
Join Date: Nov 2001
Posts: 54
dolphyn
Quote:
Originally Posted by minotauro
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.
Attached Files
File Type: txt removemail.pl.txt (1.8 KB, 46 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:10 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc