I'm trying to implement

check_client_restrictions =
    check_client_access pgsql:/path/to/local_blacklist-sql.cf,
    ...

Previously I had the same information in a cidr:
    check_client_access cidr:/path/to/local_blacklist.cidr,

When I check with postmap
    postmap -q 1.2.3.4 pgsql:/path/to/local_blacklist-sql.cf
or
    postmap -q 1.2.3.4 cidr:/path/to/local_blacklist.cidr

Postmap returns correct responses to any query (i.e. REJECT or DUNNO)

local_blacklist-sql.cf query is a call to a function that returns one row with one field containing only 'REJECT' or 'DUNNO' and it is currently recording queries so I know smtpd is calling the function, however it does not reject those clients that i'm returning REJECT for.

Any ideas?

Reply via email to