Re: how to redirect/filter bounce messages?

From: Victor Duchovni (no email)
Date: Wed Aug 11 2004 - 15:05:54 EDT


On Wed, Aug 11, 2004 at 02:51:02PM -0400, Wietse Venema wrote:

> > Leaving the content at 8bit is fine though somewhat limiting (splitting
> > long lines, portability problems with buggy intermediate MTAs, ...), the
> > key is to use a charset that includes ASCII as an identity encoded subset.
> >
> > I would personally recommend quoted-printable for 8bit text, but this is
> > optional, so long as the charset is correct. Note that including an 8bit
> > text/plain entity contained in a multipart/report, requires a content
> > transfer encoding of "8bit" also for the enclosing multipart/report
> > message.
>
> What is a robust solution? Ideally the MTA operator simply specifies
> a text file without any MIME crap, and Postfix does the right thing.

The text file if not MIME encoded cannot specify its character-set,
so this would be a separate configuration parameter:

        bounce_template_file = /etc/postfix/bounce_template
        bounce_template_charset = us-ascii

For maximal operator convenience, the code would convert codepages
that don't subsume ASCII to utf-8, but this is largely impractical
because many of the supported systems don't include bundled conversion
tables for the popular charsets or a uniform safe conversion API.

The code could in fact reasonably support only:

        - us-ascii
    OR
        - iso-8859-N
    OR
            - utf-8

and pessimistically assume that all other charsets are not extensions
of ASCII and are not suitable... The list of acceptable charsets
could be extended later as necessary.

> It is easy for Postfix to always convert the content to quoted-printable.
> BUT! Unless we can find a way for Postfix to automatically supply
> ALL MIME info, that still leaves the burden on the MTA operator to
> worry about mind-numbing MIME details such as charset. And that is
> not going to work.
>

I share the sentiment, but the text file alone is not enough, unless
it includes some metadata (charset on first line?).

-- 
	Viktor.
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.
To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:?body=unsubscribe%20postfix-users>







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD