How to blacklist a whole sender domain in postfix?
When I add "@domain.com" in the postfix blacklist configuration as a sender, it does not work, postfix is always searching the whole email in the database, the mysql query goes like this:
SELECT access FROM mail_access WHERE firstname.lastname@example.org' and type = 'sender' and active = 'y' and server_id = 1
and of course if the record in the database is just @domain.com, the above query does not match it.
Is there any way how to completely blacklist the whole sender domain?