Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Nov 2006
    Posts
    8

    Default Domain being removed from

    I have a server where the domain is being removed from /etc/userdomains at night for some reason.

    Mail client responds:
    Mail server
    mail.domain.com responded: Sorry cannot find an owner for that
    domain (domain.com)

    I add the domain back to /etc/userdomains to fix the issue.

    The server is using an old fedora 2 and cpanel version 11.3.0

    Any suggesstions?

  2. #2
    Member
    Join Date
    Aug 2008
    Location
    Uruguay
    Posts
    55
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Domain being removed from

    You can set the file inmutable to prevent the domain to be removed.
    The issue here is every time cpanel need to write something in there it won't work.
    You need to set inmutable to off and the set it on again.

    The command is:

    chattr +i /etc/userdomains

    and the following to set it off

    chattr -i /etc/userdomains
    Senior System Administrator @ Ultimate Server Management
    USM - The best management service for your linux server is with us.
    linkedin

  3. #3
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Domain being removed from

    This suggestion is not the better way to handle this happening. The file cannot be set immutable unless you don't want any other domains ever added to it, breaking adding new accounts, addon domains, parked domains and subdomains.

    Additionally, manually re-adding domains to /etc/userdomains isn't a good method to get a domain working.

    First of all, move all these files and regenerate them properly without these manual edits:

    Code:
    mv /etc/userdomains /etc/userdomains.bak
    mv /etc/domainusers /etc/domainusers.bak
    mv /etc/trueuserdomains /etc/trueuserdomains.bak
    /scripts/updateuserdomains
    If that script when run mentions any domain missing or conflicting due to another user owning it, then that's the issue. You'd then want to go to /var/cpanel/users location and remove the domain from the user's file that shouldn't be owning it and re-run "/scripts/updateuserdomains" again.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  4. #4
    Member
    Join Date
    Nov 2006
    Posts
    8

    Default Re: Domain being removed from

    Ok, I had to contact support. They found the server hostname was the same as the domain that was having the issue and that was the cause. I updated the hostname. Have to wait till tomorrow to verify it works.

  5. #5
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Domain being removed from

    This exact same situation has been discussed multiple times on the forum where the hostname is the same as the main domain on an account:

    http://forums.cpanel.net/f43/mail-lo...tml#post879022
    http://forums.cpanel.net/f43/problem...tml#post912381

    The first thread discusses the proper way to fix it.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. Issue with domain being removed from /etc/remotedomains
    By gg_uk in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-28-2011, 04:50 AM
  2. Removed domain info remaining in the system somewhere
    By S-Combs in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-10-2007, 09:17 AM
  3. How to get removed from SpamCop?
    By Jeff75 in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 12-13-2006, 09:21 AM
  4. Replies: 2
    Last Post: 03-31-2006, 08:28 PM
  5. Domain keeps on getting removed from /etc/localdomains
    By AusChucky in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-21-2005, 06:05 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube