Loading ...
Sorry, an error occurred while loading the content.
 

Re: check_recipient_access - negate ldap query to return reject if user is NOT found?

Expand Messages
  • Noel Jones
    ... To turn off the built-in recipient validation, you would also need to set in main.cf smtpd_reject_unlisted_recipient = no
    Message 1 of 4 , Oct 28 6:16 AM
      On 10/28/2009 8:11 AM, Harakiri wrote:
      > --- On Wed, 10/28/09, Noel Jones<njones@...> wrote:
      >
      >>
      >> The proper solution is to use postfix's built-in recipient
      >>
      >> validation. Valid recipients should be listed in the
      >> proper
      >> table for the address class of the recipient domain, then
      >> you
      >> 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)
      >

      To turn off the built-in recipient validation, you would also
      need to set in main.cf
      smtpd_reject_unlisted_recipient = no

      http://www.postfix.org/postconf.5.html#smtpd_reject_unlisted_recipient

      -- Noel Jones
    Your message has been successfully submitted and would be delivered to recipients shortly.