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.

Set a default Email Routing parameter

Discussion in 'E-mail Discussions' 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:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    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.
     
Loading...

Share This Page