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.
> i...@example1.com, webmas...@example2.net, etc.
> 
> Do I really have to write my check_recipient_access map in the form
> 
>   i...@example1.com       HOLD
>   webmas...@example2.net  HOLD
>   ...

With Postfix 2.4+:

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

/etc/postfix/transport:
    u...@example.com retry 4.0.0 Mailbox being migrated

This avoids the need to hold and release mail.

        Wietse

Reply via email to