Stefan Palme:
> Hi all,
> 
> As far as I have understood, check_recipient_access in 
> smtpd_recipient_restrictions uses the original RCPT TO addresses for
> lookup (and not on the results after resolving (virtual) aliases).
> 
> I want all mails received for a certain user to put on HOLD
> for a while (because I am repairing her IMAP mailbox).
> 
> This user receives mail for a lot of (virtual) email addresses, e.g.
> [email protected], [email protected], etc.
> 
> Do I really have to write my check_recipient_access map in the form
> 
>   [email protected]       HOLD
>   [email protected]  HOLD
>   ...

With Postfix 2.4+:

/etc/postfix/main.cf:
    transport_maps = /etc/postfix/transport

/etc/postfix/transport:
    [email protected] retry 4.0.0 Mailbox being migrated

This avoids the need to hold and release mail.

        Wietse

Reply via email to