Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jan 2004
    Posts
    82

    Default 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.

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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

    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

  3. #3
    Member
    Join Date
    Nov 2001
    Posts
    58

    Default

    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

Similar Threads & Tags
Similar threads

  1. Filter queue and remove messages to one domain
    By chuza in forum E-mail Discussions
    Replies: 0
    Last Post: 11-26-2009, 12:03 AM
  2. remove specific messages from exim queue
    By jfall in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-19-2005, 11:56 AM
  3. 60,114 messages in exim queue!!
    By gordita in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 06-19-2004, 12:29 PM
  4. Mailman + Exim messages getting stuck in the queue again
    By sexy_guy in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-04-2003, 06:53 PM
  5. Deleting messages from EXIM queue.
    By eter4 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-30-2003, 05:48 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube