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!

SOLVED Bypass User from Global exim filter

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

Tags:
  1. Osama Tariq

    Osama Tariq Well-Known Member

    Joined:
    Nov 27, 2014
    Messages:
    206
    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:
    44,367
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Osama Tariq

    Osama Tariq Well-Known Member

    Joined:
    Nov 27, 2014
    Messages:
    206
    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

  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