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!

Exim custom filtering of email

Discussion in 'E-mail Discussion' started by Nick Tang, Jun 8, 2018.

Tags:
  1. Nick Tang

    Nick Tang Registered

    Joined:
    Jun 8, 2018
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Malaysia
    cPanel Access Level:
    DataCenter Provider
    Hi,

    My customer would like to block senders' email to reach certain domain names that sit within the same server. I had written the following codes to the exim filter.

    or ("$h_to:, $h_cc:" contains "@abc.com")
    or ("$h_to:, $h_cc:" contains "@erf.com")
    then
    fail text "This email address is no longer exist."
    seen finish
    endif

    It works at charm. But the code above cause the senders' email that was suppose to send to zzz.com got filtered too because the email was sending to abc.com both attention TO: zzz.com and abc.com

    Any idea how to get the email send to zzz.com but not abc.com?
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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