Wietse Venema:
> > ??Thanks again Viktor.
> > It sounds a bit more in depth than I was hoping for. Given the _only_ func
> >-tion for this alias is to forward to one address, would it be possible to do
> >- a simpler approach??
>
> If it is only for one special case,
>
> /etc/postfix/main.cf
> smtpd_recipient_restrictions =
> permit_mynetworks
> ...
> reject_unauth_destination
> ...
> check_recipient_access hash:/etc/postfix/recipient_access
>
> /etc/postfix/recipient_access:
> [email protected] PREPEND: X-Original-To: [email protected]
>
> If it is for EXIM emulation:
>
> /etc/postfix/main.cf
> smtpd_recipient_restrictions =
> permit_mynetworks
> ...
> reject_unauth_destination
> ...
> check_recipient_access pcre:/etc/postfix/recipient_access.pcre
>
> /etc/postfix/recipient_access.pcre:
> /(.+)/ PREPEND: X-Envelope-To: $1
>
> Either way, if mail has multiple recipients, then they will see
> the prepended message header.
Perhaps you want to place the check_recipient_access before the
permit_mynetworks, so that the header is also prepended applies
when local client send mail.
Wietse