This is a discussion on smtpd_recipient_restrictions and relay_recipient_maps within the mailing.postfix.users forums, part of the Mail Servers and Related category; Is there a way to specify a restriction based on relay_recipient_maps in smtpd_recipient_restrictions? reject_unverified_recipient will not work with our internal ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Is there a way to specify a restriction based on relay_recipient_maps in
smtpd_recipient_restrictions? reject_unverified_recipient will not work with our internal mail server (GroupWise 5.5), as it accepts any recipient. Ideally, I'd like to have something like this: smtpd_recipient_restrictions = reject_invalid_hostname, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_sender_domain, reject_unknown_recipient_domain, permit_mynetworks, reject_unauth_destination, check_recipient_access hash:/etc/postfix/postmaster, # New option? check_relay_recipient hash:/etc/postfix/relay_recipients, check_sender_access hash:/etc/postfix/disallow_my_domain, check_sender_access hash:/etc/postfix/banned_senders, check_sender_access hash:/etc/postfix/oft_forged_senders, permit This would allow me to check my relay_recipient_maps (relay_recipients) file prior to the check_sender_access of the oft_forged_senders file which I use to reject_unverified_senders. Right now, it seems that the check of the relay_recipient_maps file happens after the incoming email is 'permitted'. I hope this makes sense. Thanks, Ken |