I like this method.

And it's working as expected.



Thanks to all

-----Original Message-----
From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] 
On Behalf Of Bill Cole
Sent: Thursday, May 19, 2016 3:56 PM
To: Postfix users <postfix-users@postfix.org>
Subject: Re: postfix ignoring access file?

On 19 May 2016, at 13:53, Gomes, Rich wrote:

> Ok, this looks close.
>
> So the reject at the end is the only way to replicate the "if not in 
> the "allow list", you are not authorized to "relay"?

One other way would be to add a 'reject' directive at the end of the 
smtpd_client_restrictions list:

  /etc/postfix/main.cf:
      smtpd_client_restrictions =
        check_client_access cidr:/etc/postfix/client_access.cidr
        reject

Reply via email to