On Fri, Mar 08, 2013 at 06:02:35PM +0200, Geoff Shang wrote:

> In testing our setup, I've noticed that both relay_domains and
> relay_recipient_maps are checking the fqdn/domain/tld and sending
> address respectively, as well as the recipient domain and address.

The sender will always be checked against relay_domains, as a
side-effect of determining whether the sender domain is "local",
which is required to transform the address into internal form
in various cases.

I am not aware of any cases in which the sender is passed through
relay_recipient_maps unless you have "reject_unlisted_sender"
somewhere in your configuration or are doing sender-address-verification.

> As these details are in LDAP, the LDAP server is getting hammered
> with a significant number of unnecessary lookups.

Index your LDAP tables to support all the required queries without
table scans. Postfix imposes a small load on a well configured LDAP
server.

-- 
        Viktor.

Reply via email to