WHM email notifications sent to root@hostname
Hi @philsward, Thank you for taking the time to create this post to help those facing the same issue. We generally see this issue when the hostname is manually changed on the server from the command line with the "hostname" command. An entry for the hostname is automatically added to the /etc/localdomains file during the initial setup phase of the cPanel installation, and any time the hostname is changed through the "WHM >> Change Hostname" feature. Thanks!
This is exactly what is causing this issue for me. I changed the hostname through WHM >> Change Hostname. That explanation doesn't explain why WHM is ignoring the following settings:
- Home "Server Configuration "Basic WebHost Manager" Setup "Contact Information:
- Enter one or more email addresses to contact in case a problem arises with this server.
- Enter one or more cellular phone or pager email addresses to message via email in case a problem arises with this server.
- Home "Server Contacts "Contact Manager
- Short Message Service (SMS)
-
Hi @rfc001 It should automatically do this for you when you change the hostname through the proper channel. The proper way to change the hostname is by going to WHM>>Networking Setup>>Change Hostname in the UI or /usr/local/cpanel/bin/set_hostname When run as root, this program changes this servers hostname, updating it in all of the relevant locations on your system. Options: --help: this help
Thanks!0
Please sign in to leave a comment.
Comments
2 comments