[2138] in RedHat Linux List
Re: sendmail hangs
daemon@ATHENA.MIT.EDU (bilker@bigfoot.com)
Thu Oct 31 20:51:33 1996
Date: Thu, 31 Oct 1996 17:47:51 -0800
To: redhat-list@redhat.com
From: bilker@bigfoot.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
I also had the problem with sendmail hanging during boot for a few
minutes in 3.0.3. With 4.0, it doesn't hang anymore.
Anyway, several responders to this thread have suggested that the
cure is to install the fully qualified domain name into the HOSTNAME
variable of the /etc/sysconfig/network file.
However, in my case I don't know the FQDN at boot time! I'm not on a
local net, and I get assigned an IP address every time I dial into my ISP.
Associated with the IP addr is a hostname, which also varies (right now
it is "max1-12.spiritone.com", but the last time I dialed in it was
"max1-52.spiritone.com".)
I've set my ppp-on script to:
1. make /etc/resolv.conf be a symlink to a file containing the
proper setup for my ISP's domain.
2. activate pppd (which runs chat).
3. once the PPP link is up, use my domain's nameserver to find
my assigned hostname (resolver function "gethostbyaddr").
4. use syscall "sethostname" to set the fully qualified hostname
returned by the resolver.
Once pppd terminates:
5. /etc/resolv.conf is reset to be a symlink to a different file
containing 2 lines:
search
nameserver
6. use the syscall "sethostname" to set the hostname back to an
unqualified name (in my case, "sludge", which is what I've
got in /etc/sysconfig/network).
The "empty" resolv.conf file is thus in place at boot time unless there's
a crash, which hasn't happened yet. (In fact, I've been using Linux for
about 9 months and have yet to see a panic.)
This procedure is sort of ad hoc, but everything seems to work. There
is no sendmail "hang" at boot, sendmail sends mail out promptly, and
popclient fetches mail from my ISP regularly. I can take PPP up and down
any number of times, getting a different hostname each time, without
screwing up sendmail.
Comments anyone?
Bill Kerr
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null