|If you get the error|
Your hostname, , and the servername you have set in DirectAdmin, server.host.com, do not match.where the hostname is blank (note the ", ,"), a reported cause of this is an incorrectly setup /dev/null file.
First make sure the hostname isn't simply blank by checking:
/bin/hostname --fqdnto ensure you get something displayed.
If you do see something, then the solution is to set it correctly:
Another confirmed solution for when you get the error message:
hostname: Name or service not knownis to edit your /etc/hosts file, and change:
184.108.40.206 your.hostname.comto be:
220.127.116.11 your.hostname.com yoursuch that you have both the long and short forms of your hostname beside your server IP.
If you do have a hostname in the output, eg:
Your hostname, bob.host.com, and the servername you have set in DirectAdmin, server.host.com, do not match.it means you just need to update the hostname:
Admin Level -> Admin Settings -> servername
set it, and save. You may need to change it to something else, then back again to re-sync it.
Also ensure that you have a full zone for the hostname in your dns:
Admin Level -> DNS Admin -> server.host.com
so that it resolves and has MX records.
© 2018 JBMC Software, Suite 173 3-11 Bellerose Drive, St Albert, AB T8N 1P7 Canada. Mon-Fri 9AM-5PM MST