Mailing List Archive

qmail-send rewriting the envelope?
For one of my qmail servers, I'm running binaries based on the sources
hosted at Untroubled:

http://untroubled.org/qmail+patches/FEATURES.html

I have one outgoing email message that can't get delivered. I've
inspected the misc files in /var/qmail/queue, and can hence observe
the specifics of the envelope.

The qmail delivery logs show that qmail-send is using a different
address than what is associated with the message. That mail server
is not configured to deliver mail for this other address, and rejects
the email.

I don't see why stock qmail-send, or any of the patches applied in
my case, would introduce this behavior.

That email server (for lists.ltb-project.org) is the only one for
which I've been unable to deliver mail to.

I'd appreciate any advice, even a pointer to a more appropriate
forum.

I'd be happy to supply any other details you consider pertinent.

Some specifics:

[root@away root]# cat /var/qmail/queue/remote/20/60832; echo
Tltb-users@lists.ltb-project.org
[root@away root]# cat /var/qmail/queue/info/20/60832; echo
Freichert@numachi.com
[root@away root]# head -16 /var/qmail/queue/mess/20/60832
Received: (qmail 9185 invoked from network); 10 May 2019 21:18:49 -0000
Received: from unknown (HELO meisai.numachi.com) (72.71.251.201)
by away.numachi.com with SMTP; 10 May 2019 21:18:49 -0000
Received: (qmail 11840 invoked by uid 1001); 10 May 2019 21:18:49 -0000
Date: Fri, 10 May 2019 17:18:49 -0400
From: Brian Reichert <reichert@numachi.com>
To: ltb-users@lists.ltb-project.org
Subject: weird RPM dependency error; '/bin/sh' needed, but is provided
Message-ID: <20190510211849.GY54527@numachi.com>
References: <20190426153829.GR54527@numachi.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20190426153829.GR54527@numachi.com>
User-Agent: Mutt/1.5.9i

My qmail-send log, note the use of 'mail.ltb-project.org':

2019-05-14 08:25:31.388777500 starting delivery 3025: msg 60832 to remote
ltb-users@lists.ltb-project.org
2019-05-14 08:25:31.388779500 status: local 0/10 remote 1/20
2019-05-14 08:25:32.224984500 delivery 3025: deferral:
163.172.47.55_does_not_like_recipient./Remote_host_said:_454_4.7.1_<ltb-users@mail.ltb-project.org>:_Relay_access_denied/Giving_up_on_163.172.47.55./

The fellow running the other mail server shared some logs with me;
here's an example snippet:

/var/log/mail.info:May 12 11:18:51 sd-101135 postfix/smtpd[20538]:
connect from away.numachi.com[66.228.38.138]
/var/log/mail.info:May 12 11:18:52 sd-101135 postfix/smtpd[20538]:
NOQUEUE: reject: RCPT from away.numachi.com[66.228.38.138]: 454 4.7.1
<ltb-users@mail.ltb-project.org>: Relay access denied;
from=<reichert@numachi.com> to=<ltb-users@mail.ltb-project.org>
proto=SMTP helo=<away.numachi.com>
/var/log/mail.info:May 12 11:18:52 sd-101135 postfix/smtpd[20538]:
disconnect from away.numachi.com[66.228.38.138]

--
Brian Reichert <reichert@numachi.com>
BSD admin/developer at large
Re: qmail-send rewriting the envelope? [ In reply to ]
Brian Reichert <reichert@numachi.com> wrote:
> For one of my qmail servers, I'm running binaries based on the sources
> hosted at Untroubled:
>
> http://untroubled.org/qmail+patches/FEATURES.html

That's Bruce Guenter's qmail distribution. Don't worry, Bruce wouldn't do
something as stupid as random rewriting in qmail-send ;)

> The qmail delivery logs show that qmail-send is using a different
> address than what is associated with the message.
[...]
> [root@away root]# cat /var/qmail/queue/remote/20/60832; echo
> Tltb-users@lists.ltb-project.org
[...]
> 163.172.47.55_does_not_like_recipient./Remote_host_said:_454_4.7.1_<ltb-users@mail.ltb-project.org>:_Relay_access_denied/Giving_up_on_163.172.47.55./

You're running into RFC821-mandated behaviour. lists.ltb-project.org is a
CNAME for mail.ltb-project.org, so senders *have* to rewrite the recipient
address.

So this looks like a misconfiguration at the receiving site.

Charles
--
--------------------------------------------------------------------------
Charles Cazabon
GPL'ed software available at: http://pyropus.ca/software/
Read http://pyropus.ca/personal/writings/12-steps-to-qmail-list-bliss.html
--------------------------------------------------------------------------
Re: qmail-send rewriting the envelope? [ In reply to ]
On Tue, May 14, 2019 at 08:45:17AM -0600, Charles Cazabon wrote:
> You're running into RFC821-mandated behaviour. lists.ltb-project.org is a
> CNAME for mail.ltb-project.org, so senders *have* to rewrite the recipient
> address.
>
> So this looks like a misconfiguration at the receiving site.

Thank you for the feedback; that calms me down.

I had suspected the very thing, and yesterday pointed out the CNAME
issue to that administrator.

He did change it yesterday, and I'm waiting for various caches to
refresh.

[root@away ~]# date; dig @127.0.0.1 lists.ltb-project.org
Tue May 14 10:57:31 EDT 2019

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-25.P1.el5_11.12 <<>> @127.0.0.1
lists.ltb-project.org
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25691
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;lists.ltb-project.org. IN A

;; ANSWER SECTION:
lists.ltb-project.org. 1709 IN A 163.172.47.55

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue May 14 10:57:31 2019
;; MSG SIZE rcvd: 55

And now my queue is unclogged:

2019-05-14 10:59:33.047194500 starting delivery 3030: msg 60832 to remote ltb-users@lists.ltb-project.org
2019-05-14 10:59:33.047196500 status: local 0/10 remote 1/20
2019-05-14 10:59:33.849580500 delivery 3030: success:
_163.172.47.55_accepted_message./Remote_host_said:_250_2.0.0_Ok:_queued_as_8EF56A1722/
2019-05-14 10:59:33.850843500 status: local 0/10 remote 0/20
2019-05-14 10:59:33.850845500 end msg 60832

All better now; thanks!

> Charles
> --
> --------------------------------------------------------------------------
> Charles Cazabon
> GPL'ed software available at: http://pyropus.ca/software/
> Read http://pyropus.ca/personal/writings/12-steps-to-qmail-list-bliss.html
> --------------------------------------------------------------------------

--
Brian Reichert <reichert@numachi.com>
BSD admin/developer at large