----- Message from Matus UHLAR - fantomas <uh...@fantomas.sk> ---------
Date: Tue, 23 Mar 2021 12:15:03 +0100
From: Matus UHLAR - fantomas <uh...@fantomas.sk>
Subject: Re: Sequence of checks for virtual alias
To: postfix-users@postfix.org
On 23.03.21 14:24, 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.
Do I still need to list them in virtual_alias_maps, or is
check_recipient_access processed first?
you can keep it in reject_unlisted_recipient.
----- End message from Matus UHLAR - fantomas <uh...@fantomas.sk> -----
Thanks, that was a useful pointer... :)
Further reading tells me that if reject_unlisted_recipient is not
specified in my smtpd_recipient_restrictions it is processed after the
restrictions listed.
So: an email to one of my users rejected with 550 by
check_recipient_access happens before reaching
reject_unlisted_recipient.
I believe I do *NOT* need to have the user listed in
virtual_alias_maps as a valid user, as the inbound email will never
reach the reject_unlisted_recipient check - correct?
Simon.
--
Simon Wilson
M: 0400 12 11 16