Archive for August, 2015

Resolving sendmail’s “My unqualified host name unknown; sleeping for retry” in FreeBSD

Friday, August 7th, 2015

Every so often I’ll see the following show up on my FreeBSD 10.0 server’s logs:

Aug 7 03:35:58 mediaserver3 sendmail[5825]: My unqualified host name (mediaserver3) unknown; sleeping for retry
Aug 7 03:35:58 mediaserver3 sendmail[5848]: My unqualified host name (mediaserver3) unknown; sleeping for retry
Aug 7 03:35:58 mediaserver3 sendmail[5849]: My unqualified host name (mediaserver3) unknown; sleeping for retry
Aug 7 03:35:59 mediaserver3 sendmail[5862]: My unqualified host name (mediaserver3) unknown; sleeping for retry

Turns out my hostname (mediaserver3) was not listed in /etc/hosts/:

::1                     localhost localhost.my.domain
127.0.0.1               localhost localhost.my.domain

Adding it to the front seemed to do the trick:

::1                     mediaserver3 localhost localhost.my.domain
127.0.0.1               mediaserver3 localhost localhost.my.domain