Jim Seymour via Postfix-users:
> On Mon, 3 Nov 2025 16:23:23 +0100
> Edgar Fu? via Postfix-users <[email protected]> wrote:
> 
> > Hello,
> > 
> > I'm looking for a method to (during a mailbox migration)
> > temporarily reject (not bounce) mails to a specific (or a set of
> > specific) local user(s).
> [snip]
> 
> Perhaps I'm missing something, but ISTM check_recipient_access would
> do the trick?
> 
> E.g.:
> 
> /etc/postfix/main.cf:
> 
>     smtpd_recipient_restrictions =
>     ...
>     check_recipient_access hash:/etc/postfix/recipient_checks
>     ...
> 
> /etc/postfix/recipient_checks:
>     [email protected]  450 migration in progress

A similar result can be achieved with transport_maps

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

/etc/postfix/transport:
    [email protected]   retry:450 migration in progress

Just for completeness, a check_recipient_access 'hold' action would
accept a message for that recipient and freeze it in the queue until
it is released with the postsuper -H option. This does not scale
to large numbers of messages, though.

        Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to