It is much easier that I thought. :)

Thank you.



Quoting Viktor Dukhovni (postfix-us...@dukhovni.org):
> 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
> 
> -- 
>       Viktor.
> 

-- 
.signature: No such file or directory

Reply via email to