I have currently a whitelist which checks inbound recipients against an ldap using a combination of
relay_recipient_maps = ldap_config... smtpd_recipient_restrictions = permit_mynetworks ...reject_unlisted_recipient Now i want to have a similar solution for outbound, only enveloped from addresses which are checked against a server - i did smtpd_sender_restrictions =ldap2_config..., reject the problem with this is - that this check is also executed for inbound mails. Basically, similar to the recipient check i would have to allow all senders that are NOT from mynetworks - i somehow have to negate this - but i have no idea how to proceed I dont want to setup a policy server for such a mundane task Thanks!