Hi,

I send myself a little email.

    Return-Path: <ra...@inputplus.co.uk>
    X-Original-To: ralph
    Delivered-To: ra...@inputplus.co.uk
    Received: by orac.inputplus.co.uk (Postfix, from userid 1000)
            id 9687C279FC; Wed, 16 Nov 2016 12:29:46 +0000 (GMT)
    Date: Wed, 16 Nov 2016 12:29:46 +0000
    To: ra...@inputplus.co.uk
    Message-Id: <20161116122946.9687c27...@orac.inputplus.co.uk>
    From: ra...@inputplus.co.uk (Ralph Corderoy)

    foo

I use nmh's dist(1) command to distribute it, using Resent-From,
Resent-To, etc., headers.  (IIRC this is similar to mutt's "bounce"
command.)

Postfix complains of a "mail forwarding loop" by return.

    Return-Path: <>
    X-Original-To: ra...@inputplus.co.uk
    Delivered-To: ra...@inputplus.co.uk
    Received: by orac.inputplus.co.uk (Postfix)
            id 2DF9D27E4C; Wed, 16 Nov 2016 12:29:55 +0000 (GMT)
    Date: Wed, 16 Nov 2016 12:29:55 +0000 (GMT)
    From: mailer-dae...@inputplus.co.uk (Mail Delivery System)
    Subject: Undelivered Mail Returned to Sender
    To: ra...@inputplus.co.uk
    Auto-Submitted: auto-replied
    MIME-Version: 1.0
    Content-Type: multipart/report; report-type=delivery-status;
            boundary="0F24A1F958.1479299395/orac.inputplus.co.uk"
    Content-Transfer-Encoding: 8bit
    Message-Id: <20161116122955.2df9d27...@orac.inputplus.co.uk>

    This is a MIME-encapsulated message.

    --0F24A1F958.1479299395/orac.inputplus.co.uk
    Content-Description: Notification
    Content-Type: text/plain; charset=utf-8
    Content-Transfer-Encoding: 8bit

    This is the mail system at host orac.inputplus.co.uk.

    I'm sorry to have to inform you that your message could not
    be delivered to one or more recipients. It's attached below.

    For further assistance, please send mail to postmaster.

    If you do so, please include this problem report. You can
    delete your own text from the attached returned message.

                       The mail system

    <ra...@inputplus.co.uk> (expanded from <ralph>): mail forwarding loop for
        ra...@inputplus.co.uk

    --0F24A1F958.1479299395/orac.inputplus.co.uk
    Content-Description: Delivery report
    Content-Type: message/delivery-status
    Content-Transfer-Encoding: 8bit

    Reporting-MTA: dns; orac.inputplus.co.uk
    X-Postfix-Queue-ID: 0F24A1F958
    X-Postfix-Sender: rfc822; ra...@inputplus.co.uk
    Arrival-Date: Wed, 16 Nov 2016 12:29:55 +0000 (GMT)

    Final-Recipient: rfc822; ra...@inputplus.co.uk
    Original-Recipient: rfc822;ralph
    Action: failed
    Status: 5.4.6
    Diagnostic-Code: X-Postfix; mail forwarding loop for ra...@inputplus.co.uk

    --0F24A1F958.1479299395/orac.inputplus.co.uk
    Content-Description: Undelivered Message
    Content-Type: message/rfc822
    Content-Transfer-Encoding: 8bit

    Return-Path: <ra...@inputplus.co.uk>
    Received: from orac.inputplus.co.uk (orac.inputplus.co.uk [IPv6:::1])
            by orac.inputplus.co.uk (Postfix) with ESMTP id 0F24A1F958
            for <ralph>; Wed, 16 Nov 2016 12:29:55 +0000 (GMT)
    X-Original-To: ralph
    Delivered-To: ra...@inputplus.co.uk
    Received: by orac.inputplus.co.uk (Postfix, from userid 1000)
            id 9687C279FC; Wed, 16 Nov 2016 12:29:46 +0000 (GMT)
    Date: Wed, 16 Nov 2016 12:29:46 +0000
    To: ra...@inputplus.co.uk
    User-Agent: mail v14.8.14
    Message-Id: <20161116122946.9687c27...@orac.inputplus.co.uk>
    From: ra...@inputplus.co.uk (Ralph Corderoy)
    Resent-From: Ralph Corderoy <ra...@inputplus.co.uk>
    Resent-To: ra...@inputplus.co.uk
    Resent-Date: Wed, 16 Nov 2016 12:29:55 +0000
    Resent-Message-Id: <20161116122955.0f24a1f...@orac.inputplus.co.uk>

    foo

    --0F24A1F958.1479299395/orac.inputplus.co.uk--

AIUI this is because the original email's Delivered-To header is in the
resent email with the same email address as the new email's destination.

Does an RFC cover Delivered-To?  If not, what's the closest to a
specification?

Resending the email to myself at the same email address is legitimate
and used to work in years past.  What does Postfix think an MUA should
do in this circumstance?  Remove the Delivered-To header whenever
resending?

Any other advice Postfix can offer this MUA?

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy

Reply via email to