David B?rgin:
> In section ?What macros will Postfix send to Milters??, MILTER_README
> says:
>
> > As of Sendmail 8.14.0, Milter applications can specify what macros
> > they want to receive at different Milter protocol stages. An
> > application-specified list takes precedence over a Postfix-specified
> > list.
>
> This refers to the API function smfi_setsymlist, right? When I hook a
The Milter docs say: "This function must only be called during
xxfi_negotiate()". Thus, you cannot call it at any other time.
(found with a Google query, because milter.org is gone).
Postfix test code calls smfi_setsymlist during initial Milter
connection negotiation, through the xxfi_negotiate callback in the
smfiDesc structure. It's been ~10 years, but that code presumably
worked. The program is included with Postfix source as
src/milter/test_milter.c. Maybe you can play with that.
Wietse
> little test milter into Postfix, requesting a few non-default macros (eg
> ?{client_connections}?) with this function during negotiation, it
> doesn?t have any effect. Postfix doesn?t send the macros.
>
> Is smfi_setsymlist supported? Did I misunderstand something?
>
> Thank you.
>