Page 1 of 1

Undelivered Mail Returned to Sender - Show Original

Posted: Mon Jan 07, 2019 9:24 pm
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?

Re: Undelivered Mail Returned to Sender - Show Original

Posted: Tue Jan 08, 2019 6:03 pm
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?

Re: Undelivered Mail Returned to Sender - Show Original

Posted: Wed Jan 09, 2019 7:52 pm
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).

Re: Undelivered Mail Returned to Sender - Show Original

Posted: Tue Jun 21, 2022 6:28 am
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">