> I'm curious to know what I've done wrong with my client checks file.
> I can reject a specific IP but it won't reject when I use net
> blocks... format is listed below in client_checks.cf
> Suggestions comments welcome.
Pick a table format and use it.
> smtpd_recipient_restrictions =
> check_client_access hash:/etc/postfix/client_checks.cf,
> 22.214.171.124/8 REJECT We have not seen your IP Address before. Please
> visit https://example.com?newip=126.96.36.199/8 to unblock your IP
That's CIDR format, not the domain/octet prefix form required for a
hashed access map.
See the man pages for access(5) and cidr_table(5) for the differences
and details, so you can pick one.
Also note: if you're going to reject all of 188.8.131.52/8 by default, you
might as well simplify and go with an overall default reject policy.