Check Valid Server Hostname Error

pineyscripter

Member
Mar 19, 2018
13
1
3
Missouri
cPanel Access Level
Website Owner
In the process of setting up my server so that I could use mailman, an admin manually changed my host name from mydomain.org to mail.mydomain.org

The good news - mailman is successfully sending mail out for my mailing lists ....

The bad news - I have now started getting these messages:

[[email protected] ~]# /usr/local/cpanel/scripts/check_valid_server_hostname
ERROR: WHM has detected a manual hostname change.

The system will attempt to synchronize the current hostname “mail.missourimn.org” to the system configuration. In the future, update your hostname in WHM’s (http://mail.mydomain.org:2087/scripts2/changehostname) interface (Home » Networking Setup » Change Hostname).
The hostname may not begin with “mail.” because it conflicts with an automatically configured domain. at /usr/local/cpanel/scripts/check_valid_server_hostname line 52.
[[email protected] ~]#

How do I fix this ... can I simply use whm and just change the host name to mx.mydomain.org -
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
14,399
2,255
363
cPanel Access Level
Root Administrator
Hey there! You can't use "mail" as the start of the hostname but it could conflict with future domains created on the system. For example, if you later create yourdomain.com, cPanel will automatically create the mail.yourdomain.com subdomain.

If you change the hostname to something like host.yourdomain.com or server1.yourdomain.com using the WHM interface I would expect that to work properly and no longer give that error message.