Qmail
[Top] [All Lists]

Re: multilog-watch, qmail-remote, and "Sorry. Although I'm listed as a b

To: qmail@list.cr.yp.to
Subject: Re: multilog-watch, qmail-remote, and "Sorry. Although I'm listed as a best-preference..."
From: Kyle Wheeler <kyle-qmail@memoryhole.net>
Date: Tue, 5 Jun 2007 09:10:49 -0600
Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
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:comment:domainkey-signature: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=mbwljwx+qLke4kTbKKTHmYO3F6c=; b=T1hgcTtxAndIZkuO9TMlm0tVJZhhmgv2/bNKDeKjZw/EX4d1c1sx1pMUfaoJddXyjmeSopSLdjntqG+sOwmZdNAVxiiEcIy21kdemyD2NBr7+Z6Nx5yH45DidZHBYBiK+6v6c7Imb+GgqPCYZv1aqYJHbUl/HY/4N28XqY1Z1kc=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=Q3eKbndLGwYDHE+moSjq63gZHHrphnX54b8EihS4kVxYOuE2HKQGhxyjgAH4l0TnUSSe3m6YfDulg8GII8+jxqFo0Fs+rCcMwWPKHqxQeC+mb3tjxNindZGhqdYEdfjxhVDnWfJRMobOOXMwHgmJD+88gORbolYxnRcbQK8eWb0= ;
Domainkey-status: good
In-reply-to: <18021.26320.413942.559974@sws5.ornl.gov>
Mail-followup-to: qmail@list.cr.yp.to
Mailing-list: contact qmail-help@list.cr.yp.to; run by ezmlm
References: <18020.27946.626028.437343@sws5.ornl.gov> <20070604220736.GK5000@caesar.cse.nd.edu> <18021.26320.413942.559974@sws5.ornl.gov>
User-agent: Mutt/1.5.15cvs (2007-05-20)
On Tuesday, June  5 at 09:36 AM, quoth Dave Sill:
So my guess would be that you have a DNS issue: your machine either thinks its IP address is not 160.91.218.105 (unlikely, but worth checking), or it thinks that sws5.ornl.gov's MX record resolves to something other than that (e.g. it could resolve to 127.0.0.1).

$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:13:72:1D:0A:62 inet addr:160.91.218.105 Bcast:160.91.219.255 Mask:255.255.252.0
         inet6 addr: fe80::213:72ff:fe1d:a62/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:30484331 errors:0 dropped:0 overruns:0 frame:0
         TX packets:53802584 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000 RX bytes:653996188 (623.6 MiB) TX bytes:636196097 (606.7 MiB) Interrupt:177 $ dnsmx sws5.ornl.gov
10 sws5.ornl.gov
$ dnsip sws5.ornl.gov
160.91.218.105 $

I still don't get it.

OH! Right, duh.

Here's what I *think* is going on:

So, qmail-remote *does not* read control/locals. Which makes this error message very strange if you consider qmail-remote as a standalone program. But of course, it's not a standalone program, and it expects that when it is run, certain things have already happened, namely, that qmail-send (which *does* read control/locals) has already made the local/remote decision, and has determined that the recipient host is not local (and is therefore remote).

What qmail-remote does, then, is it looks up the recipient host's address, and then asks itself "is this recipient host actually ME?" (i.e. is it this machine?) If qmail-remote determines that it IS being asked to deliver to itself, it spits out the error that you're seeing. What qmail-remote assumes is going on is that qmail-send decided that hostname X is remote (i.e. it wasn't in control/locals) and so told qmail-remote to deliver to it; but qmail-remote realized that hostname X is actually pointing to the local machine, and thus if it continued with the delivery, it would be perpetrating a mail loop (i.e. qmail-send would once again determine that that hostname is non-local, and qmail-remote would get it again, and would deliver it to localhost again, etc.). And the only way that could happen, of course, is if hostname X isn't in control/locals (or, technically, control/virtualdomains), which is why qmail-remote spits out that particular error!

So I guess the question then becomes: why are you using qmail-remote to inject mail into the local queue? The command:

    qmail-remote localhost me@localhost me@localhost

should instead be written:

    qmail-inject -fme@localhost me@localhost

or in your case:

    qmail-inject -froot@sws5.ornl.gov root@sws5.ornl.gov

The only remaining question after that becomes: why did the (logically incorrect) qmail-remote command work for you *before*? I can think of only two possibilities: 1. qmail-remote wasn't correctly identifying itself 2. you used to have an entry for sws5.ornl.gov in smtproutes (which I believe overrides this particular check)

Does that make sense?

~Kyle
--
Democracy must be something more than two wolves and a sheep voting on what to have for dinner.
                                                       -- James Bovard

Attachment: pgpHu4mUda7Ja.pgp
Description: PGP signature

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