Hi, A lot of spam comes from certain ip ranges (e.g. west africa) through relays (large ISPs) that would be too onerous to block. To filter these I am presently matching:
/^((Received|X-Originating-IP):.+\b(124\.120\.1\.(<IP RANGE IN REGEX>)\b/ in pcre:/etc/postfix/header_access. But converting IP ranges to regex'es is time consuming and error prone. Is there a way to use a cidr table for header matching while retaining control of the prefix ^(Received|X-Originating-IP) ? Or another better way? Thanks,