Rudy Gevaert:
> Hallo,
> 
> I configured smtpd_recipient_restrictions to look in an access table.  I 
> was intending to use the REDIRECT statement to redirect mails for 
> certain recipients.
> 
> unfortunately, after a selected roll out into production we noticed that 
> this has issues for messages sent to multiple recipients.
> 
> Of course this is mentioned in the manual page:
> 
> REDIRECT user@domain
>    After the message is queued, send the message to  the  specified
>    address instead of the intended recipient(s).
> 
>    Note:  this  action  overrides  the FILTER action, and currently
>    affects all recipients of the message.
> 
> Is there a way that I can still use the REDIRECT statement to achieve 
> the same result but without braking delivery?

If you want to *replace* those recipients, you could use 

/etc/postfix/main.cf:
    recipient_canonical_maps = hash:/etc/postfix/recipient_canonical
    recipient_canonical_classes = envelope_recipient

/etc/postfix/recipient_canonical:
    u...@example.com    ot...@example.net

        Wietse

Reply via email to