I've got my own domain and domain server.  I've just run into a problem
about the appropriate settings for hosts and domains, and it's messing up a
few things in my postfix setup.

The gentoo instructions say to set /etc/conf.d/hostname to the host name
only.  It gets passed to sethostname(2) unchanged by /etc/init.d/hostname.
I did it.
The gentoo instructions say to put a domain name, if needed, into
/etc/conf.d/net.  It seems to get used in network setup.  I did it.

Nothing seems to be set into whatever it is that setdomainname(2) is used
for.
My mailx mailer seems to put "localdomain" on the sender address when my
crontab entries call it.  Maybe because it sees that getdomainname(2) comes
up empty.

What's the right way to set this up?  Should I just cobble my proper domain
into setdomainname(2)?  Is there a right way?  Is there a better way?

-- 
Kevin O'Gorman, PhD

Reply via email to