Just trashed the mobo on my gentoo machine and reinstalled on a
different machine entirely.
(sendmail-8.13.4)
I'm setting up sendmail... something I've done many times but each
time it has been a right pain in the butt. No exception this time...
I'm not running a mailserver, just a stand alone machine that
retrieves and sends my personal mail.
I've used sendmail successfully for 8-9 yrs and have no interest in
changing MTA's unless there is a very good reason.
In previous installs I haven't had this particular problem. Sendmail
and other apps complain of not finding a qualified host name.
I've always used a home-made host name (for 8-9 yrs now)...
in this case:
chub.local.net0
I've setup these files:
hosts - resolv.conf - /etc/conf.d/hostname - /etc/conf.d/domainname
I'm not running bind or anything involving /etc/nsswitch
Putting the right stuff in these has always done the trick but not
this time. I may be forgetting something:
hosts:
127.0.0.1 localhost chub
## ============================
192.168.x.xx chub.local.net0 chub # gentoo
[...]
Resolv.conf:
nameserver 192.168.0.20 # Its a gateway router that queries
# IPS nameservers
domain local.net0
/etc/conf.d/hostname:
# Set to the hostname of this machine
HOSTNAME="chub"
/etc/conf.d/domainname:
# /etc/conf.d/domainname
# When setting up resolv.conf, what should take precedence?
# If you wish to always override DHCP/whatever, set this to 1.
OVERRIDE=1
# To have a proper FQDN, you need to setup /etc/hosts and /etc/resolv.conf
# properly (domain entry in /etc/resolv.conf, and FQDN in /etc/hosts).
#
DNSDOMAIN="local.net0"
# This only set what /bin/hostname returns. If you need to setup NIS, meaning
# what /bin/domainname returns, please see:
#
# http://www.linux-nis.org/nis-howto/HOWTO/
#
# NISDOMAIN=
With all this set the `hostname' command returns:
hostname chub
hostname --long localhost
I want to see `local.net0' not `localhost'... so does sendmail and
squid I think.
Can anyone spot what I've forgotten or messed up?
--
[email protected] mailing list