From owner-freebsd-questions Wed Apr 22 17:20:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA12423 for freebsd-questions-outgoing; Wed, 22 Apr 1998 17:20:47 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA12286 for ; Thu, 23 Apr 1998 00:20:31 GMT (envelope-from dwhite@gdi.uoregon.edu) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.7/8.8.8) with SMTP id RAA29864; Wed, 22 Apr 1998 17:20:20 -0700 (PDT) (envelope-from dwhite@gdi.uoregon.edu) Date: Wed, 22 Apr 1998 17:20:20 -0700 (PDT) From: Doug White Reply-To: Doug White To: Ugo Paternostro cc: freebsd-questions@FreeBSD.ORG Subject: Re: DNS Cache+MX+SendMail = Host not found... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 22 Apr 1998, Ugo Paternostro wrote: > Yes, when my link is up ;-) If I try to send a mail to > foo@anotherplace.some.domain when I'm not connected to my ISP, sendmail simply > queues the mail (because of a failed DNS search, or a "no route to host" error > if the name was cached). > > The problem appears only when sendmail know that the host you're sending mail > to has an MX, but it (sendmail) doesn't know anything about the MX. This may > happen when I drop the PPP link because my DNS caches only the MX record, but > not the address the MX is pointing to (maybe it caches both, but the latter > expires). Okay, that makes much more sense. > Currently I have three solution: > a. wait for the MX record in the NameServer cache to expire (loooooongggg...) > b. restart the name server (but I loose cache contents) > c. pester Doug White :-) Suggestion: Set up sendmail to always queue messages, then use `sendmail -q' when you get connected to clean the queue out. The name of the feature escapes me but it should be in the mail archives or at http://www.sendmail.org. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message