I've identified two hosts which regularly spam my users, yet come undetected by spam filters. They're ran by "newsletter" companies which have really good deliverability rate and thus use proper RDNS.
So I tried blocking them in smtp_header_checks like this:
Code:
/^Received: .*\.inis\.pl/ REJECT Spamerzy wypierdalac!
/^Received: .*\.freshmail\.pl/ REJECT Spamerzy wypierdalac!
But obviously this didn't work - the Received headers are created further in the pipeline.
How do I block certain remote hosts from connecting based on their RDNS, without resorting to iptables and IP-level blocks?