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!

massive autodetect mail configuration

Discussion in 'E-mail Discussion' started by urgido, Nov 1, 2014.

  1. urgido

    urgido Well-Known Member

    Joined:
    Jul 19, 2005
    Messages:
    122
    Likes Received:
    7
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Is there a way to change all dns to Automatically Detect Configuration on mail configuration? This is because for some reason after migrate to a new server some dns zones that are working with gmail these change to Local Mail Server and this is affecting some of my customers.
     
  2. Sys Admin

    Sys Admin Well-Known Member

    Joined:
    Apr 29, 2007
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    156
    cPanel Access Level:
    Root Administrator
    How did you migrate your accounts please? WHM to WHM or via SSH?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #2 Sys Admin, Nov 1, 2014
    Last edited: Nov 1, 2014
  3. urgido

    urgido Well-Known Member

    Joined:
    Jul 19, 2005
    Messages:
    122
    Likes Received:
    7
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    WHM to WHM
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,855
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    Internal case number 108461 is addressed in cPanel version 11.46:

    Fixed case 108461: Preserve the MXCHECK setting when transfering an account.

    As a solution to this post-transfer issue, the following command should be useful:

    Code:
    /scripts/checkalldomainsmxs
    This script will check the DNS Zones on your server and adjust the following files according to its findings:

    Code:
    /etc/localdomains
    /etc/remotedomains
    /etc/secondarymx
    
    Aside from adjusting the MXCHECK value by hand (through the "WHM -> Edit DNS Zone" feature), you could utilize our API to take advantage of the following function:

    Email::setmxcheck

    You could loop it through all of the domains on the server and set the mxcheck value accordingly.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. urgido

    urgido Well-Known Member

    Joined:
    Jul 19, 2005
    Messages:
    122
    Likes Received:
    7
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Thank you very much @cPanelMichael
     
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