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!

Block all incoming SMTP except from ip's of my spam filter service

Discussion in 'E-mail Discussion' started by Jason Richmond, Jul 31, 2018.

  1. Jason Richmond

    Jason Richmond Registered

    Joined:
    Nov 3, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    NC
    cPanel Access Level:
    Root Administrator
    I use two external spam filtering services.
    All MX records for the domains on my cpanel server point to the spam filtering service.
    I am getting spam from spammers that just email @mydomain.com and disregard the MX records.

    I'd like to modify exim so that it ONLY accepts emails sent to it from the ip's of my spam filtering services. It also needs to accept mail generated inside the server itself.

    I've already added those ip's into /etc/trustedmailhosts.
    All of the documentation I have found to do this refers to very old cpanel/exim installs.

    Can someone help me out?

    Thanks!
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,137
    Likes Received:
    222
    Trophy Points:
    173
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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