On 2011-12-01 02:39, Viktor Dukhovni wrote:
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)
   us...@external.com  OK
   us...@faraway.com  OK

/usr/local/etc/postfix/rcpt-whitelist: (no postmap for cidr tables)
   192.0.2.1    permit

I think you meant:

/usr/local/etc/postfix/trusted-clients: (no postmap for cidr tables)
  192.0.2.1     permit


--
J.

Reply via email to