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!

Set a default Email Routing parameter

Discussion in 'E-mail Discussion' started by lgurret, Sep 3, 2014.

  1. lgurret

    lgurret Registered

    Joined:
    Sep 3, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi everyone,

    I need help about MX entry configuration on WHM, regarding Email Routing.

    1) Indeed, is there a way to assign the "Automatically Detect Configuration" for Email Routing for a specific package on WHM ? or by default for each user ?
    If not, is there a command we can send to change it manually from the server for all users ?

    I have seen that we can select it during account creation but our accounts are created externally so it doesn't help.

    2) Moreover, if we use the "DNS Template" and set an external MX but on the cPanel user interface the email routing option is set to "Local Mail Exchanger", what will happen ? Is the option will be ignored by cPanel ?

    I found old threads on the forum about that but no one has answers.

    Thanks !
    Regards,
    Lionel
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,961
    Likes Received:
    1,821
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    1. The following command is available:

    Code:
    /scripts/checkalldomainsmxs
    However, here is the warning when running this script:

    You can use the "mxcheck" parameter when creating an account with our API:

    WHM API1 - createacct

    2. It's important to choose the correct mail routing option so the domain name is properly placed in the /etc/localdomains or /etc/remotedomains file. Otherwise, conflicts will arise with email sent from PHP scripts hosted under the account on the cPanel server, or mail sent from other domain names on the same cPanel server.

    Thank you.
     
    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