Results 1 to 3 of 3

Thread: create domain = hostname, but create email then cannot login.

  1. #1
    MGV
    MGV is offline
    Member
    Join Date
    Mar 2011
    Posts
    6

    Default create domain = hostname, but create email then cannot login.

    WHM 11.28.64
    OS: CENTOS 5

    Hello,

    I have a problem with email in cpanel. I create a domain (it's name also is my server hostname). But then i create email for testing. Its not work. After that, i create subdomain like test.mydomain.com and create email with this. It's work nomally (login success).

    What i need to do now? My domain has no problem with MX entry..

    Thanks,

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: create domain = hostname, but create email then cannot login.

    The issue is exactly the fact that you've added a domain on the system that is the same as your hostname. You cannot use a hostname that needs to also be a domain on the machine for an account. Change the hostname to something like server.mydomain.com instead in WHM > Change Hostname area, then run /scripts/updateuserdomains to get the domain working for ownership.

    Again, the hostname cannot be the exact same as mydomain.com because the hostname is owned by the user nobody under cPanel, which means that an account user cannot then own it. If you change to server.mydomain.com, which will then be owned by nobody, then mydomain.com will be able to work for email.

    You can see before and after changing the hostname who owns the domain to see that there is an ownership issue by running this command:

    Code:
    /scripts/whoowns mydomain.com
    Of course, replace mydomain.com in each of the above examples with the actual domain name. The whoowns script tells you what user owns a set domain.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #3
    MGV
    MGV is offline
    Member
    Join Date
    Mar 2011
    Posts
    6

    Default Re: create domain = hostname, but create email then cannot login.

    Thanks for your advice, it's work for me. Thanks again!

Similar Threads

  1. Mailman create on hostname not on user domain
    By isputra in forum E-mail Discussions
    Replies: 7
    Last Post: 03-19-2010, 11:56 PM
  2. Mailman create on hostname not on user domain
    By isputra in forum cPanel & WHM Discussions
    Replies: 5
    Last Post: 03-19-2010, 11:27 PM
  3. How to create email domain alias?
    By kornell in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 06-20-2007, 04:02 AM
  4. can't create email address for addon domain
    By ThinIce in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 02-22-2007, 08:55 AM
  5. how to create cpanel or webmail login script with multiple domain
    By arif_ceo in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 04-23-2004, 12:53 PM