Qmail
[Top] [All Lists]

Re: cname deferral on already chris k.davis patched system

To: qmail@list.cr.yp.to
Subject: Re: cname deferral on already chris k.davis patched system
From: Kyle Wheeler <kyle-qmail@memoryhole.net>
Date: Sun, 20 May 2007 19:34:55 -0600
Comment: DomainKeys? See http://domainkeys.sourceforge.net/
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-qmail@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list qmail@list.cr.yp.to
Dkim-signature: v=0.5; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=received:received:date:from:to:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; q=dns/txt; s=default; bh=pIEioCAXz/igmD9SFpW+mgBHwpA=; b=F9QdNSd+ikCyY9OCob4XEv3dQhHaHS5Ohus4NR0qpV5Y0NsuHIXC0tOl6A03NxpMXcDP86yU9iMWlZ/jhh5fIvQwC94O7uhhCcnoykbyl72xsToH+awQlE1Ug8FpRb+cIIVIlw/9DrZprwvG5udT8IfeT2Vw0ZjoTCrQxd0pcK4=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=Sbh4d8nHtyxkiZpcbFelLDPG/+5ZLS0H01gaBr29Rbdm+FUNrSmMBkk1acJHzE/pCFuCAkM6fVimO1Fe1TMOy43ErpVtugfigxyth+7b/ZC4Nngfk2ax2XV+2V4KRDn51SpU4SAYoQ05mqZbQ+KFW3Hp61kG+YK4LX9sdjH81/g=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent;
Domainkey-status: good
In-reply-to: <4650C6B6.8040009@samuelmurez.com>
Mail-followup-to: qmail@list.cr.yp.to
Mailing-list: contact qmail-help@list.cr.yp.to; run by ezmlm
References: <20070428204146.GC12435@aleut.local> <924f29280704281642h749e0511h65fbcfa28a632186@mail.gmail.com> <46390CB4.1000304@samuelmurez.com> <20070502233034.GE21230@tunican.local> <20070503133034.GA5470@discworld.dyndns.org> <46507B5A.8080404@samuelmurez.com> <20070520173002.GA26604@aleut.local> <4650B23C.3020305@samuelmurez.com> <20070520214342.GD26604@aleut.local> <4650C6B6.8040009@samuelmurez.com>
User-agent: Mutt/1.5.15 (2007-05-02)
On Monday, May 21 at 12:07 AM, quoth Samuel Murez:
The question to answer here is: where is the failure occurring? The failure must lie in one of three places: either the program making the query (dnsq) is broken, or the program doing the lookup (djbdns) is broken, or the server you're asking for data is broken. Since dnsq doesn't have logs, and we don't have access to hotmail.com's DNS logs, I think it's fairly reasonable to assume that I'm talking about the djbdns logs (i.e. the only dns logs that you have access to). From there we may be able to figure out what's going on. They may not help, but they're the best place to start.
Thanks for your answer. Sorry to be so slow, I haven't worked with dns before.

Happy to help.

From what I can tell, I don't have djbdns correctly installed and configured.

Yup, and probably a large part of that is that BIND is listening to 127.0.0.1:53, which is preventing djbdns from using that port.

It is my understanding that though it helps with the cname deferral problem, it's not strictly necessary for qmail. Is this the case ?

Correct. I only started talking about djbdns since you said that you had installed it.

Just to get a handle on my issue here (please correct me where I'm wrong) :

my qmail is not sucessfully sending mail to many large mail servers that we can presume are not all having problems at the same time. the errors, can't establish an smtp connection, and cname deferral, could both be due to a problem with dns lookups ?

No. The cname deferral is most likely a problem with DNS lookups. The failure to establish smtp connection error you saw could be one of two things: network problems, the recipient's server is down, or bad domain info (on the part of the recipient). One thing that might cause both is general network flakiness (e.g. if your router is dropping lots of packets), but in general, they're separate problems that need to be resolved separately.

this problem is happening now though it wasn't occuring before, during a few years where my mail setup was working fine, and I made no configuration changes.

Has *anything* about the box changed? Has anything about its environment changed?

we're now trying to figure out what's happening during the dns lookups, that work fine on the 2nd try from the command line.

Right.

Do you know if when a dns lookup is requested by qmail, it would be done only once, or a second time if it fails ?

It is done once per connection attempt.

If qmail were to start second-guessing everything about the system, one has to ask: why stop at two lookups (if the first one fails)? Why not three? or five? or a hundred? At some point qmail has to assume that the services it relies on are doing their jobs properly. And if they're doing their jobs properly, asking once should be more than sufficient to get the best possible answer at that time (i.e. a failure means that the name cannot be looked up right now, and asking a split-second later has no expectation of success).

~Kyle
--
Just because you do not take an interest in politics doesn't mean politics won't take an interest in you.
                                                  -- Pericles (430 BC)

Attachment: pgpUJ9389vbsv.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>