Res wrote:
Hi All,
I have a situation where I need to allow a remote user to email in (yes,
that's whitelisted and working fine), but, deny local users from emailing
that remote user.
I use check_recipient_access and check_sender_access already under
smtpd_recipient_restrictions, both of these come after the permit
mynetworks, I'm sure I can place another check_recipient_access
before the permits with the remote u...@host, will this work or is there
a better way?
Thanks
If your intention is to prevent anyone from sending mail to
that particular recipient, then yes, placing another
check_recipient_access map above permit_mynetworks would work.
A safer solution is to put that check under
smtpd_sender_restrictions as the only entry. That way a
mistake in the table won't make you an open relay.
If you need to restrict a subset of your users from sending to
that address, please see the examples in
http://www.postfix.org/RESTRICTION_CLASS_README.html#external
--
Noel Jones