Re: check_recipient_access - negate ldap query to return reject if user is NOT found?
- On 10/28/2009 8:11 AM, Harakiri wrote:
> --- On Wed, 10/28/09, Noel Jones<njones@...> wrote:To turn off the built-in recipient validation, you would also
>> The proper solution is to use postfix's built-in recipient
>> validation. Valid recipients should be listed in the
>> table for the address class of the recipient domain, then
>> can reject all unknown recipients with a simple
>> "reject_unlisted_recipient" at whatever point you
> Thanks, so i should use
> relay_recipient_maps = ldap:/myconfig.cf
> and in smtpd_recipient_restrictions i add reject_unlisted_recipient before greylisting and rbl right?
> Furthermore, if i just have relay_recipient_maps = ldap:/myconfig.cf - and NO reject_unlisted_recipient - nothing will happend ? (i.e. its easy to switch it on and off without outcommenting the maps each time)
need to set in main.cf
smtpd_reject_unlisted_recipient = no
-- Noel Jones