On Tue, Mar 23, 2021 at 02:24:09PM +1000, Simon Wilson wrote:

> I have some user email addresses (in domains that are specified as  
> virtual_alias_domain) listed in /etc/postfix/recipient_access and  
> configured to return 550 Mailbox no longer in use.

If you just delete both the virtual(5) entry and the access(5) rule, the
address will be rejected as unknown.  That's typically good enough.

> Do I still need to list them in virtual_alias_maps, or is  
> check_recipient_access processed first?

Address-class-specific recipient validity checks happen after a
recipient passes all the restriction classes, and before the recipient
is finally accepted by the SMTP server.

For mail injected locally via sendmail(1) there are no access(5) checks,
so mail is delivered if there's a path to the mailbox (a possibly empty
chain of aliases and then an address that supports actual delivery).

-- 
    Viktor.

Reply via email to