Martijn de Munnik wrote: > On Wed, 2009-08-19 at 09:10 -0400, Brian Evans - Postfix List wrote: > >> Martijn de Munnik wrote: >> >>> Hi list, >>> >>> How can I enable the address_verify_map only for the relay_domains? >>> >>> >> To answer the query: >> Replace reject_unverified_recipient with "check_recipient_access >> hash:/path/to/file" >> >> /path/to/file: >> slagenlandwonen.nl reject_unverified_recipient >> wfcommunicatie.nl reject_unverified_recipient >> > > All the domains where this should be applied to are listed in > relay_domains. Can I apply the reject_unverified_recipient rule to those > domains without a separate file? I want a single place to manage the > relay_domains. > >
It is possible to use the same map as relay_domains itself. This is because relay_domains just checks to see if the lookup key exists and ignores the result. http://www.postfix.org/postconf.5.html#relay_domains It is discouraged to reuse maps as you must know what it is really doing and not over use 1 map for everything. In this case, it would do little harm. However you *must* limit the use to just those 2 parameters.