Hi,

I send myself a little email.

    Return-Path: <[email protected]>
    X-Original-To: ralph
    Delivered-To: [email protected]
    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: [email protected]
    Message-Id: <[email protected]>
    From: [email protected] (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: [email protected]
    Delivered-To: [email protected]
    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: [email protected] (Mail Delivery System)
    Subject: Undelivered Mail Returned to Sender
    To: [email protected]
    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: <[email protected]>

    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

    <[email protected]> (expanded from <ralph>): mail forwarding loop for
        [email protected]

    --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; [email protected]
    Arrival-Date: Wed, 16 Nov 2016 12:29:55 +0000 (GMT)

    Final-Recipient: rfc822; [email protected]
    Original-Recipient: rfc822;ralph
    Action: failed
    Status: 5.4.6
    Diagnostic-Code: X-Postfix; mail forwarding loop for [email protected]

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

    Return-Path: <[email protected]>
    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: [email protected]
    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: [email protected]
    User-Agent: mail v14.8.14
    Message-Id: <[email protected]>
    From: [email protected] (Ralph Corderoy)
    Resent-From: Ralph Corderoy <[email protected]>
    Resent-To: [email protected]
    Resent-Date: Wed, 16 Nov 2016 12:29:55 +0000
    Resent-Message-Id: <[email protected]>

    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