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!

Force cPanel to always perform MX Lookup

Discussion in 'E-mail Discussion' started by kenneth-vkd, Nov 9, 2018 at 4:31 AM.

  1. kenneth-vkd

    kenneth-vkd Member

    Joined:
    Apr 1, 2017
    Messages:
    21
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Denmark
    cPanel Access Level:
    DataCenter Provider
    Hi
    We are facing an issue where we host email for multiple clients. Some of these clients do business with each other and some of them even have an external spamfiltering solution as they do not want to use the one that comes with cPanel/WHM.
    In case that two clients are on the same host, cPanel performs a local delivery and therefore the email never reaches the recipients external spamfiltering service.

    Is there are way for us to always force cPanel SMTP to perform a lookup of the MX records and only perform local delivery if the recipients MX-record points directly to the server ifself?
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,517
    Likes Received:
    251
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @kenneth-vkd

    For all the domains that host their mail remotely, I would suggest doing one of the following (same result two different ways to get there)

    1. Via CLI remove the domains with remote MX from /etc/localdomains and place them in /etc/remotedomains

    2. From WHM>>DNS Functions>>Edit DNS Zone -> domain.tld at the very bottom "Email Routing for domain.tld set automatically detect configuration or remote mail exchanger to have them be remote.


    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. brt

    brt Well-Known Member

    Joined:
    Jul 9, 2015
    Messages:
    93
    Likes Received:
    7
    Trophy Points:
    8
    Location:
    US
    cPanel Access Level:
    Root Administrator
    Wouldn't doing this prevent the mail from being delivered back from the filtering service?
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,517
    Likes Received:
    251
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @brt


    It's technically the only way to force a lookup like he's requesting and it works for local MX Entries. You do have a point though, it could cause deliverability issues if set to remote. If that option doesn't work because of the way that local deliveries work (two clients on the same server) it may not be possible to force a lookup.
     
    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