Monday, February 17, 2014

FreeBSD stop SendMail "My unqualified host name" warnings

This Discussion on Nabble explains how to stop the "My unqualified host name" error on FreeBSD installations. This will happen by default if you're setting up a FreeBSD machine you don't give a fully qualified hostname at installation time, e.g. mycomputer.google.com. To fix, edit /etc/rc.conf and add this line:
sendmail_enable="NONE"

Updated (better) option #2
This FreeBSD mailing list message mentions being able to change your hostname by editing the hostname value in the same file. Looking at /etc/hosts, it occurred to me the problem may simply be that I picked the wrong name (netbook) for my machine not intended to be out on the internet by itself. Changing /etc/rc.conf's hostname line to read:
hostname="localhost"
allowed me to clear the error message without turning off SendMail.