[2228] in RedHat Linux List
Re: sendmail hangs
daemon@ATHENA.MIT.EDU (D. Wayne Dyer)
Fri Nov 1 14:34:20 1996
To: redhat-list@redhat.com
Date: Fri, 1 Nov 1996 11:26:38 -0800 (PST)
From: "D. Wayne Dyer" <dwdyer@eskimo.com>
In-Reply-To: <199611010147.RAA13342@max1-12.spiritone.com> from "bilker@bigfoot.com" at Oct 31, 96 05:47:51 pm
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
bilker@bigfoot.com wrote:
[...]
> Once pppd terminates:
> 5. /etc/resolv.conf is reset to be a symlink to a different file
> containing 2 lines:
> search
> nameserver
[...]
> 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?
I think this is the key -- when sendmail starts, it will (I'm pretty sure)
try to do a DNS lookup. If the PPP link isn't up, it will wait until it
times out, which is the "hang" we see. I hadn't thought of using a
"empty" resolv.conf -- although my PPP technique is similar. (I
sometimes connect to different ISPs, so I have to change network
configurations, etc.) I will try this & maybe I can go back to using
sendmail.
This might also solve another problem I'm having with diald -- when a
connection comes up on demand, it usually hangs. I've been getting
around it by deliberately sending a pointless nslookup or whois command,
terminating it as soon as the modem dials, then proceeding normally once
the link is up. We will see...
--
Wayne Dyer :: dwdyer@eskimo.com :: http://www.eskimo.com/~dwdyer/
"Never stay up on the barren heights of cleverness, but come down
into the green valleys of silliness. " -- Wittgenstein
--
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