Ralf Hildebrandt: > * Wietse Venema <[EMAIL PROTECTED]>: > > Ralf Hildebrandt: > > > Which $variables are available in a bounce template? > > > > main.cf parameters, including some main.cf parameters with special > > suffixes as listed in the bounce(5) manual page. > > > > > The second portion of a bounce template consists of message text. As the > > > above example shows, template message text may contain main.cf > > > $parameters. Besides the parameters that are defined in main.cf, the > > > following parameters are treated spe- cially depending on the suffix that > > > is appended to their name. > > > > > > I wonder if something like "orig_recipient_domain" is available :) > > > > That is not a main.cf parameter, and it is not a main.cf parameter > > with a special suffix as listed in the bounce(5) manual page. > > Indeed. > > > Recipient information would have to be stored into an array (there > > can be more than one) of structures that also contain the reason > > and other status information. The bounce template would look like > > a PHP script. Not sure if it is a good idea to put a PHP processor > > into Postfix. > > Probably not.
This is not an insane idea. My original plan was to implement Postfix as a configuration language, with built-in operators implemented by what is now libutil, libglobal, etc. But I got stuck with the prototype C version. Wietse