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.
On 23.03.21 22:22, Simon Wilson wrote:
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?
that's what I was trying to say.
you'd need to explicitly list reject_unlisted_recipient before check_recipient_access
to have it different.
reject_unlisted_recipient is not needed unless you set
smtpd_reject_unlisted_recipient=no or you want to reject invalid users before
checking check_recipient_access
- you don't want zthis.
one of my friends stated that fake "user doesn't exist" rejections/bounces
helped him get rid of many spams years ago
- It won't be the case nowadays.
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Spam is for losers who can't get business any other way.