mailer-daemon bounce notifications with original message in clear text?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

mailer-daemon bounce notifications with original message in clear text?

Jim Rice
We have a client connecting with a custom pop-client script that wants to parse mailer-daemon bounce notifications.
But the original email content is being returned as an .eml attachment.

Is there any way to configure bounce to compose the response message in clear text (message/rfc822)?

mail_version = 3.1.1
Reply | Threaded
Open this post in threaded view
|

Re: mailer-daemon bounce notifications with original message in clear text?

Wietse Venema
Jim Rice:
> Is there any way to configure bounce to compose the response message
> in clear text (message/rfc822)?

I can assure you that Postfix does not send .eml attachments.
That's a Microsoft thing.

In a Postfix bounce message, the undelivered message is returned
as message/rfc822. Proof is below the signature. I replaced the
domain name, ip address, and username info but left the message
structure intact.

I suspect that you are viewing Postfix bounces that have been
munged by some peoprietary mail system.

        Wietse

Date: Tue,  8 Jan 2019 20:13:47 +0000 (UTC)
From: [hidden email] (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
To: [hidden email]
Auto-Submitted: auto-replied
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
        boundary="50F3E210E0.1546978427/some-server"
Message-ID: <20190108201347.3966820F72@some-server>
Status: O

This is a MIME-encapsulated message.

--50F3E210E0.1546978427/some-server
Content-Description: Notification
Content-Type: text/plain; charset=us-ascii

This is the mail system at host some-server.

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

<some-user@some-domain>: delivery temporarily suspended: connect to
    www.some-domain[ipaddr]:25: Connection timed out

--50F3E210E0.1546978427/some-server
Content-Description: Delivery report
Content-Type: message/delivery-status

Reporting-MTA: dns; some-server
X-Postfix-Queue-ID: 50F3E210E0
X-Postfix-Sender: rfc822; [hidden email]
Arrival-Date: Sun, 30 Sep 2018 19:08:23 +0000 (UTC)

Final-Recipient: rfc822; some-user@some-domain
Original-Recipient: rfc822;postfix-users-outgoing
Action: failed
Status: 4.4.1
Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to
    www.some-domain[ipaddr]:25: Connection timed out

--50F3E210E0.1546978427/some-server
Content-Description: Undelivered Message
Content-Type: message/rfc822

Return-Path: <[hidden email]>
Received: from english-breakfast.cloud9.net (english-breakfast.cloud9.net [168.100.1.7])
        by some-server (Postfix) with ESMTPS id 50F3E210E0
        for <some-user@some-domain>; Sun, 30 Sep 2018 19:08:23 +0000 (UTC)
Received: by english-breakfast.cloud9.net (Postfix)
        id BD2CD333251; Sun, 30 Sep 2018 15:06:52 -0400 (EDT)
Delivered-To: [hidden email]
Received: from localhost (localhost [127.0.0.1])
        by english-breakfast.cloud9.net (Postfix) with ESMTP id BAB94333250
        for <[hidden email]>; Sun, 30 Sep 2018 15:06:52 -0400 (EDT)
X-Virus-Scanned: amavisd-new at cloud9.net
Received: from english-breakfast.cloud9.net ([127.0.0.1])
        by localhost (english-breakfast.cloud9.net [127.0.0.1]) (amavisd-new, port 10024)
        with ESMTP id h0IFeV-Y9R0Z for <[hidden email]>;
        Sun, 30 Sep 2018 15:06:52 -0400 (EDT)
Received: by english-breakfast.cloud9.net (Postfix, from userid 54)
        id 9B613333253; Sun, 30 Sep 2018 15:06:52 -0400 (EDT)
Delivered-To: [hidden email]
Received: from localhost (localhost [127.0.0.1])
        by english-breakfast.cloud9.net (Postfix) with ESMTP id 815E6333250
        for <[hidden email]>; Sun, 30 Sep 2018 15:06:52 -0400 (EDT)
X-Virus-Scanned: amavisd-new at cloud9.net
Received: from english-breakfast.cloud9.net ([127.0.0.1])
        by localhost (english-breakfast.cloud9.net [127.0.0.1]) (amavisd-new, port 10024)
        with ESMTP id 58aBvaCxATHY for <[hidden email]>;
        Sun, 30 Sep 2018 15:06:52 -0400 (EDT)
Received: from straasha.imrryr.org (straasha.imrryr.org [100.2.39.101])
        (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
        (No client certificate requested)
        by english-breakfast.cloud9.net (Postfix) with ESMTPS id 6030B333248
        for <[hidden email]>; Sun, 30 Sep 2018 15:06:52 -0400 (EDT)
Received: from [192.168.1.161] (unknown [192.168.1.161])
        (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
        (No client certificate requested)
        by straasha.imrryr.org (Postfix) with ESMTPSA id 4373730BD37
        for <[hidden email]>; Sun, 30 Sep 2018 15:06:51 -0400 (EDT)
Content-Type: text/plain;
        charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 12.0 \(3445.100.39\))
Subject: Re: set-permissions fails: how to fix and/or manual set correct
 permissions?
From: Viktor Dukhovni <[hidden email]>
In-Reply-To: <[hidden email]>
Date: Sun, 30 Sep 2018 15:06:50 -0400
Content-Transfer-Encoding: 7bit
Reply-To: Postfix users <[hidden email]>
Message-Id: <[hidden email]>
References: <[hidden email]>
 <[hidden email]>
 <[hidden email]>
 <[hidden email]>
To: Postfix users <[hidden email]>
X-Mailer: Apple Mail (2.3445.100.39)
Sender: [hidden email]
Precedence: bulk
List-Id: Postfix users <[hidden email]>
List-Post: <mailto:[hidden email]>
List-Help: <http://www.postfix.org/lists.html>
List-Unsubscribe: <mailto:[hidden email]>
List-Subscribe: <mailto:[hidden email]>

> On Sep 30, 2018, at 2:51 PM, Max Mustermann <[hidden email]> wrote:
>
> Usually it's a mistake to test if the user is root.
> POSIX does not even require a root user.

This is not a productive discussion...  The Postfix deployment
scripts reasonably expect to be able to chown files to "root",
or check whether they belong to "root".  That is they expect
a reasonably standard Unix system.  No further comment.

--
        Viktor.


--50F3E210E0.1546978427/some-server--


Reply | Threaded
Open this post in threaded view
|

Re: mailer-daemon bounce notifications with original message in clear text?

Jim Rice
The sending platform is Sitecore, which I believe is a Microsoft platform.



--
Sent from: http://postfix.1071664.n5.nabble.com/Postfix-Users-f2.html
Reply | Threaded
Open this post in threaded view
|

Re: mailer-daemon bounce notifications with original message in clear text?

Jim Rice
As a followup, we found a workaround...

postconf -e bounce_size_limit=1
zmcontrol restart

(Yes, this is Zimbra.)

This had the effect of including the bounce notification and headers,
but without the original email content (and no .eml attachment).



--
Sent from: http://postfix.1071664.n5.nabble.com/Postfix-Users-f2.html