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.

First, you must send one recipient per message, otherwise you still
won't know who the recipient was when you get feedback from AOL.

Once you have one recipient per message, prepend the recipient with
check_recipient_access:

     /etc/postfix/main.cf:
        smtpd_XXX_restrictions =
            check_recipient_access pcre:/etc/postfix/prepend.pcre

     /etc/postfix/rcpt_prepend.pcre:
        /(.+)/ prepend X-YYY: $1

For suitable values of XXX and YYY.

Or use VERP, as others have suggested.

Thanks. I'll investigate both options, and see which is best suited to my needs.

Mark
--
 Sent from my Babbage Difference Engine
 http://mark.goodge.co.uk
 http://www.ratemysupermarket.com

Reply via email to