PDA

View Full Version : Sendmail startup slow, "unqualified hostname unknown; sleeping for retry"


WNorfleet
17th November 2005, 12:39 AM
Booting FC3 hangs at the sendmail startup script for 3 min. /var/log/maillog shows three episodes of "unqualified host name (desk) unknow; sleeping for retry". Here's the complete log of a sendmail startup:

Nov 16 18:15:32 desk sendmail[3106]: My unqualified host name (desk) unknown; sleeping for retry
Nov 16 18:16:32 desk sendmail[3106]: unable to qualify my own domain name (desk) -- using short name
Nov 16 18:16:32 desk sendmail[3106]: alias database /etc/aliases rebuilt by root
Nov 16 18:16:32 desk sendmail[3106]: /etc/aliases: 78 aliases, longest 10 bytes, 802 bytes total
Nov 16 18:16:32 desk sendmail[3142]: My unqualified host name (desk) unknown; sleeping for retry
Nov 16 18:17:32 desk sendmail[3142]: unable to qualify my own domain name (desk) -- using short name
Nov 16 18:17:32 desk sendmail[3143]: starting daemon (8.13.1): SMTP+queueing@01:00:00
Nov 16 18:17:32 desk sm-msp-queue[3150]: My unqualified host name (desk) unknown; sleeping for retry
Nov 16 18:18:32 desk sm-msp-queue[3150]: unable to qualify my own domain name (desk) -- using short name
Nov 16 18:18:32 desk sm-msp-queue[3151]: starting daemon (8.13.1): queueing@01:00:00
[root@desk log]#

The host name of this machine is "desk". I could just disable sendmail, but, shucks, that's no fun, and it defeats some of the utility of smartd (because sendmail must be up for smartd to send mail to root). Why might sendmail get confused at this point?

Thanks for considering this question!

gavinw6662
17th November 2005, 09:23 AM
at the prompt type hostname and see what the output is.

gavinw6662
17th November 2005, 09:23 AM
also - you might need a FQDN (fully qualified domain name) which would be desk.somewhere.com

WNorfleet
18th November 2005, 02:58 PM
That's it: sendmail requires that the result of "hostname" be a fully qualified domain name to start cleanly. Thanks, Gavin. To change a hostname, see: www.cpqlinux.com/hostname.html. For shared printers, the printer queue may need to be edited as well.

Artie
24th November 2007, 06:10 AM
i see users post this over and over - "sendmail hangs" or "sendmail takes forever to load"

the problem is that sendmail is looking for a FQDN, and it is probably finding your hostname before localhost and localhost.localdomain

your host file entry should have your simple hostname after the others:

/etc/hosts
-----------
127.0.0.1 localhost.localdomain localhost myhostname <--- order matters!!!

if done this way, sendmail sees a FQDN for your loopback interface and will breeze right through.

Ogaki - Ovar Travel Photos - Nangen Photos on Instagram