On Thu, Jul 21, 2016 at 5:14 PM, Benny Pedersen <m...@junc.eu> wrote:

> On 2016-07-21 20:27, Steve Jenkins wrote:
>
> whitelists and blacklists for Postscreen based on hostnames:
>> https://github.com/stevejenkins/postwhite
>>
>
> can blacklist be saved to seperate cidr file ?, so order of
> blacklist/whitelist is user choices ? :=)
>
> postfix have always being first match wins
>

Yes, the black list is saved as a separate file for that very reason.  Then
just make sure the whitelist is first:

postscreen_access_list = permit_mynetworks,
...
        cidr:/etc/postfix/postscreen_spf_whitelist.cidr,
        cidr:/etc/postfix/postscreen_spf_blacklist.cidr,
...

Presto! :)

SteveJ

Reply via email to