Chris St Denis wrote:
Looking through the docs it looks like I can use smtpd_sender_login_maps and smtpd_sender_restrictions with reject_sender_login_mismatch

However I want to apply this only to selected destination addresses and I'm not sure how to go about this.

Can I use reject_sender_login_mismatch (or something similar) in a recipient map?


yes. same as all postfix actions.

Does smtpd_sender_login_maps have to contain all addresses on the server, or just the ones I care about?


just the ones you need to check.


Optmally, I want to apply reject_sender_login_mismatch only to users when sending to specific addresses. Reject if the check fails, but not check for sending to anywhere else.


Dealing with forgeries from the internet isn't a big concern because incoming mail comes in on a different ip, I can just block all incoming mail with from: locally hosted domain. It is preventing senders from one local domain from spoofing another for these restricted aliases that needs protection.



Reply via email to