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

Re: check_recipient_access with exceptions

Expand Messages
  • Vladimir Parkhaev
    It is much easier that I thought. :) Thank you. ... -- .signature: No such file or directory
    Message 1 of 4 , Dec 1, 2011
    • 0 Attachment
      It is much easier that I thought. :)

      Thank you.



      Quoting Viktor Dukhovni (postfix-users@...):
      > On Wed, Nov 30, 2011 at 08:38:13PM -0500, Vladimir Parkhaev wrote:
      >
      > Augment this:
      >
      > > smtpd_recipient_restrictions =
      > > check_recipient_access hash:/usr/local/etc/postfix/access,
      > > reject_unauth_destination,
      > > permit
      >
      > As follows (and avoid using "access", name each table after its
      > specific role):
      >
      > main.cf:
      > cidr = cidr:${config_directory}/
      > indexed = ${default_database_type}:${config_directory}/
      > #
      > smtpd_recipient_restrictions =
      > check_client_access ${cidr}trusted-clients,
      > check_recipient_access ${indexed}rcpt-whitelist,
      > reject_unauth_destination,
      > permit
      >
      > /usr/local/etc/postfix/rcpt-whitelist: (postmap rcpt-whitelist when changed)
      > user1@... OK
      > user2@... OK
      >
      > /usr/local/etc/postfix/rcpt-whitelist: (no postmap for cidr tables)
      > 192.0.2.1 permit
      >
      > --
      > Viktor.
      >

      --
      .signature: No such file or directory
    Your message has been successfully submitted and would be delivered to recipients shortly.