> On 27/02/2016, at 9:13 AM, Wietse Venema <[email protected]> wrote:
> 
> This is why Postfix by default adds an X-Original-To: header with
> the original recipient up on mailbox delivery. This is with
> "enable_original_recipient = yes”.

I haven’t tried this yet, but it would appear this is the actual mailbag’s 
address as quite a few users are mapped through to the one mailbox.

> That of course does not work if some other program does the mailbox
> delivery instead of Postfix.

In my case we are using dovecot to do the final delivery into a mailbox.

> 
> 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

Some other options, great I’ll do a bit more investigation/experimentation and 
see if I can get the desired result.

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

I hadn’t considered that, thanks.  I will see if I can limit the impact by only 
matching their domain.

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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