From: Wietse Venema (no email)
Date: Sun Aug 01 2004 - 19:57:06 EDT
Victor Duchovni:
> On Sun, Aug 01, 2004 at 05:47:36PM -0400, Nicolas Riendeau wrote:
>
> > Hi Victor!
> >
> > Victor Duchovni wrote:
> > >All that is missing is a suitable mechanism for specifying the bounce
> > >text.
> >
> > Would text files (one for failure, one for warning and one for probes)
> > loaded
> > in memory in a (new) pre_jail_init in bounce.c be acceptable?
> >
> > These text files would only be used if specified in main.cf otherwise the
> > "stock"
> > bounce text message would be used.
> >
> > The actual bounce message would be generated as needed and it would contain
> > macros such as
> >
> > ${MAIL_PROGRAM_NAME}
> > ${MYHOSTNAME)
> > ${DELAY_WARN_HOURS}
> > ${MAX_QUEUE_DAYS)
> > ${POSTMASTER}
> >
> > which would be replaced by the appropriate values?
> >
>
> Something alone these lines, with more macros for the recipient and the
> bounce reason...
I'm fine with making the text *before* recipients configurable,
and it should of course use main.cf syntax so that we don't have
to build another macro processor into Postfix. And if the syntax
needs extending so be it but it shall be reusable for main.cf.
This text should also have provision for content-type and character
set information if that is needed. It should not provide other MIME
headers so as not to mess up the DSN message format.
However, I'm afraid that the portions with recipients and reasons
cannot be made configurable. The number of recipients in a DSN is
arbitrarly large. That's too much complexity for too little reward.
Wietse
|
|
|