PDA

View Full Version : [Solved] sendmail and unqualified host name


abarmot
November 18th, 2008, 20:03
Installed new FreeBSD 7. while first boot it shows: unqualified host name (hostname) unknown; sleeping for retry.
after CTRL+c /etc/rc.d/sendmail interrupted

google said that problem is in /etc/hosts file. and probably in /etc/nsswitch.conf but i can't find error in it.

please see my configuration files.
hostname# cat /etc/rc.conf
defaultrouter="192.168.1.1"
hostname="hostname"
ifconfig_vr0="inet 192.168.1.3 netmask 255.255.255.0"
keymap="us.iso"
sshd_enable="YES"

hostname# cat /etc/hosts
::1 localhost
127.0.0.1 localhost
192.168.1.3 hostname
192.168.1.3 hostname.

hostname# cat /etc/nsswitch.conf
group: compat
group_compat: nis
hosts: files dns
networks: files
passwd: compat
passwd_compat: nis
shells: files
services: compat
services_compat: nis
protocols: files
rpc: files

Where can be a problem?
thanks for any help.

SirDice
November 18th, 2008, 20:44
hostname needs to be something like myhost.mydomain.home
It doesn't really matter if the domain is actually valid or not. Sendmail just needs something to base it's domain on.

abarmot
November 19th, 2008, 04:43
hostname needs to be something like myhost.mydomain.home
It doesn't really matter if the domain is actually valid or not. Sendmail just needs something to base it's domain on.

you are right.
i works!
thanks!!

carlton_draught
May 30th, 2010, 13:55
hostname needs to be something like myhost.mydomain.home
It doesn't really matter if the domain is actually valid or not. Sendmail just needs something to base it's domain on.
Thanks SirDice, you saved my bacon. I was getting the same thing on startup and my keyboard was refusing to output anything after about 1 minute into login, until this was fixed. Very frustrating!