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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED Bypass User from Global exim filter

Discussion in 'E-mail Discussions' started by Osama Tariq, Mar 16, 2017.

Tags:
  1. Osama Tariq

    Osama Tariq Well-Known Member

    Joined:
    Nov 27, 2014
    Messages:
    205
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Lahore, Pakistan
    cPanel Access Level:
    Root Administrator
    Twitter:
    Is it possible to bypass any specific domain or email id from global exim filter:

    #cat /usr/local/cpanel/etc/exim/sysfilter/options/cpanel_exim_system_filter


    Code:
    if
    ($received_protocol is "local"
    or $received_protocol is "smtp"
    or $received_protocol is "smtps"
    or $received_protocol is "esmtp"
    or $received_protocol is "esmtpa"
    or $received_protocol is "esmtps"
    or $received_protocol is "esmtpsa")
    and ("$h_subject:" contains "swiss")
    or ("$h_subject:" contains "sales")
    or ("$h_subject:" contains "marketing")
    or ("$h_subject:" contains "promotions")
    then
      logwrite "$tod_full $message_id from $sender_address contained **SPAM** $h_subject to $h_to keywords"
    seen finish
    endif
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  3. Osama Tariq

    Osama Tariq Well-Known Member

    Joined:
    Nov 27, 2014
    Messages:
    205
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Lahore, Pakistan
    cPanel Access Level:
    Root Administrator
    Twitter:
    Thanks for help me to get me on right track.
     
    cPanelMichael likes this.
Loading...

Share This Page