Check Valid Server Hostname Error


Mar 19, 2018
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 to

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 “” to the system configuration. In the future, update your hostname in WHM’s ( 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 -
Last edited by a moderator:


Jurassic Moderator
Staff member
Oct 19, 2014
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, cPanel will automatically create the subdomain.

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