Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Simple system-wide keyword email filter?

Discussion in 'E-mail Discussion' started by jols, Apr 23, 2010.

  1. jols

    jols Well-Known Member

    Mar 13, 2004
    Likes Received:
    Trophy Points:
    Is there any aspect of the cPanel system that can be used as a system-wide, keyword based anti-spam filter?

    Let's say that I wanted to send to /dev/null all incoming email with the word "viagra" in the subject line, and do this for every single email address hosted at the server. How would I do this?

    Thanks much.

    By the way, I had been using /etc/antivirus.exim for this, but the rules I enter in this file no longer have any effect, even though the following IS in the /etc/exim.conf file:


    Here is a sample of my rules in the above file, but again, none of this has any effect (and yes, this used to work fine):

    # Exim filter
    if error_message then finish endif
    $message_headers contains "viagra"
    or $header_reply-to contains "internetseer"
    or $header_Subject contains "Buy and save"
    or $message_headers contains "Buy and save"
    or $message_headers contains ""
    or $message_body contains "Facebook_details"
    or $message_body contains "mailbox utility"
    or $message_body contains ""
    or $message_body contains ""
    or $message_body contains ""
    or $message_body contains "microsoftofficeupdate"
    or $message_body contains "viagra"
    or $message_body contains "phentermine"
    save "/dev/null" 660

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice