Undelivered Mail Returned to Sender - Show Original

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
blueflametuna
Advanced member
Advanced member
Posts: 63
Joined: Sat Sep 13, 2014 12:57 am

Undelivered Mail Returned to Sender - Show Original

Post by blueflametuna »

Running 8.8.7_GA_1964.FOSS - Bounced emails are being returned with the original message as an attachment. (javascript link).
Is there a simple configuration setting to have them returned in clear text instead?

The only thing I could find is this obscure reference in bounce:

bounce_size_limit (default: 50000)

The maximal amount of original message text that is sent in a non-delivery notification. Specify a byte count. A message is returned as either message/rfc822 (the complete original) or as text/rfc822-headers (the headers only).
With Postfix version 2.4 and earlier, a message is always returned as message/rfc822 and is truncated when it exceeds the size limit.

Does Postfix mail_version = 3.1.1 have a different default than message/rfc822?
blueflametuna
Advanced member
Advanced member
Posts: 63
Joined: Sat Sep 13, 2014 12:57 am

Re: Undelivered Mail Returned to Sender - Show Original

Post by blueflametuna »

Let me rephrase the question ...

Our customer is using a pop client, not the Zimbra client, and thus, not web based. (so never mind the javascript).

The mailer-daemon NDR bounce notifications being sent are including an .eml file attachment as the original email.
Is it possible to compose the mailer-daemon response message to include the original email in clear text rather than as an attachment?
blueflametuna
Advanced member
Advanced member
Posts: 63
Joined: Sat Sep 13, 2014 12:57 am

Re: Undelivered Mail Returned to Sender - Show Original

Post by blueflametuna »

As a follow up,

postconf -e bounce_size_limit=1
zmcontrol restart

This had the effect of including the bounce notification and headers,
but without the original email content (and no .eml attachment).
larryhems
Posts: 1
Joined: Tue Jun 21, 2022 6:26 am

Re: Undelivered Mail Returned to Sender - Show Original

Post by larryhems »

blueflametuna wrote: Does Postfix mail_version = 3.1.1 have a different default than message/rfc822?
The fully RFC 822 compliant regex is inefficient and obscure for validate email address because of its length. Fortunately, RFC 822 was superseded twice and the current specification for email addresses is RFC 5322. RFC 5322 leads to a regex that can be understood if studied for a few minutes and is efficient enough for actual use.

If you use HTML5, use this code:

Code: Select all

<input type="email" name="email" required placeholder="Enter a valid email address">
Post Reply