Sendmail takes ages to start
I had a development server that was taking ages to start. I checked the /var/log/messages
file which didn't reveal anything so I checked the /var/log/maillog
which showed the following lines:
Nov 11 16:16:11 myhost sendmail[1334]: My unqualified host name (myhost) unknown; sleeping for retry
Nov 11 16:17:11 myhost sendmail[1334]: unable to qualify my own domain name (myhost) -- using short name
Nov 11 16:17:11 myhost sendmail[1336]: starting daemon (8.14.4): SMTP+queueing@01:00:00
Nov 11 16:17:11 myhost sm-msp-queue[1344]: My unqualified host name (myhost) unknown; sleeping for retry
Nov 11 16:18:11 myhost sm-msp-queue[1344]: unable to qualify my own domain name (myhost) -- using short name
Nov 11 16:18:11 myhost sm-msp-queue[1363]: starting daemon (8.14.4): queueing@01:00:00
The salient line for the delay is:
My unqualified host name (myhost) unknown; sleeping for retry
myhost was in the /etc/hosts
file and it resolved just fine. I typed domainname
and got (none)
. It's a development machine so I didn't want to set up a domain for it.
The solution was to alter my /etc/hosts
file to include the localdomain suffix thus:
192.168.0.200 myhost myhost.localdomain
Now sendmail starts quickly as expected.
No feedback yet
Form is loading...