On Thu, June 11, 2009 1:03 pm, Stefan Palme said: > local_recipient_maps .vs. smtpd_recipient_restrictions - can > anybody tell me which test happens first on incoming emails?
You're comparing apples and oranges, but I understand what you mean. local_recipient_maps specifies lookup tables that Postfix will consult if the recipient address domain is local (i.e. listed in mydestination). This check takes place at the end of smtpd_recipient_restrictions, unless you explicitly place a reject_unlisted_recipient restriction somewhere else. For example, the configuration below avoids useless RBL lookups for invalid recipients by making the recipient check first. Typically you'd want to perform the least expensive checks first. smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination, reject_unlisted_recipient, reject_rbl_client zen.spamhaus.org -- Magnus Bäck mag...@dsek.lth.se