Hi all,

I'm looking for a way to add a header to the messages before they are
delivered to a multidrop mailbox with virtual aliases.

After searching the postfix-users list archives I've found that this subject
has been already discused here and I've found a message from Zoltan Balogh
that seemed to be exactly what I needed:

------8<--------------------------------------------------------------------------------------------
> So basically I just need to help fetchmail "guessing" the correct
> envelope recipients by appending "X-Envelope-To" (or similar header
> entry) to the email message. I did the following:
>
>     smtpd_recipient_restrictions =
>         ...
>         check_recipient_access pcre:/etc/postfix/recipient_access
>
> /etc/postfix/check_recipient_access:
>    /(....@somedomain.com)/ PREPEND X-Envelope-To: <$1>
------8<--------------------------------------------------------------------------------------------

But it doesn't work for me. No header is added at all!

Maybe it is because I use LMTP as a delivery method from Postfix to Cyrus?

Should I place the check_recipient_access rule in another phase of smtp
check instead of smtpd_recipient_restrictions?

Thanks

-- 
Bernardo Pons

Reply via email to