The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

block email header server-wide?

Discussion in 'E-mail Discussions' started by christi1, Jun 19, 2006.

  1. christi1

    christi1 Well-Known Member

    Joined:
    Oct 20, 2003
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Texas, USA
    Is there a way to search for a specific pattern in an email header and block it server-wide across ALL domains??

    I've tried the following in the Exim Editor via WHM, but exim throws errors on restart:

    # Spamtrap
    if
    $message_headers contains "XXX"
    or $message_headers contains "XX"
    then
    fail text "Your mail is not welcome on this server."
    seen finish
    endif

    Any insight would be appreciated.
     
Loading...

Share This Page