On Sun, Apr 27, 2014 at 07:48:16PM +0200, Wolfgang Breyha wrote:
> > Question about this: What do you do when bounce_return_body is set,
> > but the body is larger than the bounce_return_size_limit is exceeded?
>
> The same Exim always did. Cutting of the body at bounce_return_size_limit
> if the admin wants to do so.
This can generate malformed MIME, which might be further mangled
or rejected downstream.
> > Simply truncating MIME output is problematic. Postfix returns only
> > the headers (changing the returned content MIME type from message/rfc822
> > to text/rfc822-headers) when the body is too large to return. Is
> > this also the new Exim approach?
>
> My patch is far from defining "the new Exim approach";-) Currently it
> sticks to classic Exim behaviour. But I'm open for changing that.
I think you should strongly consider returning just the headers
when the body is too big, truncation of MIME is best avoided.
> Thanks for mentioning text/rfc822-headers. I missed that part from RFC.
You're welcome.
--
Viktor.