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.

Stop Incoming Email Except from External Spam Filter

Discussion in 'E-mail Discussions' started by Prathibha gamage, Aug 30, 2016.

  1. Prathibha gamage

    Prathibha gamage Registered

    Joined:
    Aug 30, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Dubai
    cPanel Access Level:
    Root Administrator
    This is related to the following thread.

    Stop Incoming Email Except from External Spam Filter

    But when I add the below code to my exim configuration, it blocks sending emails from outlook as well. How can I allow sending by outlook or webmail, but receive email only from my spam filter IPs?

    accept hosts = :
    deny
    !hosts = @[] : net-iplsearch;/etc/trustedmailhosts
    message = This server does not handle mail directly
     
  2. Prathibha gamage

    Prathibha gamage Registered

    Joined:
    Aug 30, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Dubai
    cPanel Access Level:
    Root Administrator
    Thanks Michael,

    I tried this as well. But the same issue, outlook clients also gets blocked. How can I restrict remote emails to be accepted only from my external spam filter + all emails sent by mail clients? maybe I should check the sending email domain?
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    This would require a custom Exim configuration. I couldn't find any other examples other than the previously linked threads, but you may find the Exim user's mailing list helpful for this question:

    Exim-users Info Page

    Thank you.
     
Loading...

Share This Page