> 
> You can prepend a recipient header with an smtpd access rule:
> 
> /etc/postfix/main.cf:
>    smtpd_recipient_restrictions = 
>       check recipient_access prce:/etc/postfix/prepend-rcpt.pcre
>       ...other rules...
> 
> /etc/postfix/prepend-rcpt.pcre:
>    /(.+)/ prepend X-Rcpt-To: $1

This technique works exactly as I wanted. My thanks to Wietse

> Note that this is a privacy leak; all recipients can see the addresses
> of all other recipients.

I have updated the RE to target only the domain of the customer using mail 
bagging.  Not perfect but IMHO acceptable.

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Glen Eustace,
GodZone Internet Services, a division of AGRE Enterprises Ltd.,
P.O. Box 8020, Palmerston North, New Zealand 4446
Ph +64 6 357 8168, Mob +64 27 542 4015

“Specialising in providing low-cost professional Internet Services since 1997"


Reply via email to