Mark Goodge:
> On 22/11/2011 13:20, Wietse Venema wrote:
> > Mark Goodge:
>
> >> What I'd like to do, therefore, is set a header via Postfix. But I am
> >> having difficulty working out how to do that, or even if it's possible.
Wietse:
[prepending recipient header at SMTP time].
> > Or use VERP, as others have suggested.
>
> Thanks. I'll investigate both options, and see which is best suited to
> my needs.
One more thing.
You can use the smtpd_command_filter feature to append XVERP to
SMTP commands from legacy sofware. This requires Postfix 2.7 or
later.
/etc/postfix/main.cf:
smtpd_command_filter = pcre:/etc/postfix/append_verp.pcre
smtpd_authorized_verp_clients = $mynetworks
/etc/postfix/append_verp.pcre:
/^(MAIL FROM:<listname@example\.com$>.*)/ $1 XVERP
I just added this note to VERP_README.
Wietse