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.

massive autodetect mail configuration

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

  1. urgido

    urgido Well-Known Member

    Joined:
    Jul 19, 2005
    Messages:
    66
    Likes Received:
    1
    Trophy Points:
    8
    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:
    6
    cPanel Access Level:
    Root Administrator
    How did you migrate your accounts please? WHM to WHM or via SSH?
     
    #2 Sys Admin, Nov 1, 2014
    Last edited: Nov 1, 2014
  3. urgido

    urgido Well-Known Member

    Joined:
    Jul 19, 2005
    Messages:
    66
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    WHM to WHM
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    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.
     
  5. urgido

    urgido Well-Known Member

    Joined:
    Jul 19, 2005
    Messages:
    66
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Thank you very much @cPanelMichael
     
Loading...
Similar Threads - massive autodetect mail
  1. jethrodesign
    Replies:
    9
    Views:
    667
  2. Danr86
    Replies:
    1
    Views:
    400

Share This Page