On 2016-05-14 21:27, Viktor Dukhovni wrote:
On May 14, 2016, at 3:21 PM, Christian Kivalo
<ml+postfix-us...@valo.at> wrote:
smtpd_recipient_restrictions =
...
check_client_access
hash:/etc/postfix/client_checks,
...
$ cat /etc/postfix/client_checks
...
138.185.116.0/24 REJECT
This looks correct.
And yet it is wrong, look closely.
Thanks, missed it.
The access(5) manpage has an example for this
1.2.3 REJECT
The client_checks file should then be like
138.185.116 REJECT
For IP address ranges probably better use a cidr_table(5).
Still: logs showing it not working are highly welcome.
--
Christian Kivalo