Eric A. Hall wrote:
On 10/23/2006 7:01 PM, John Rudd wrote:
Eric A. Hall wrote:
http://www.ehsco.com/misc/spamassassin/std_compliance.cf might help or
work for what you're doing.

Make sure to read the disclaimers and warnings
Those helped a lot. There's only three checks I can't do with them (probably need to use a plugin for it):

a) does the hostname in the PTR record point to a CNAME instead of an A record

That's not illegal. It's pretty common too, since subnet delegation of
in-addr space only works on /8, /16 and /24 subnets due to the way that
octets are mapped to domain name labels in that hierarchy.

RFC 1912 says "don't do that" :-)

Though, honestly, I've yet to see it actually get triggered in my mimedefang filter, so I don't mind losing it.



b) does the hostname contain it's IP address in _hex_ form (instead of in decimal form, which I've already got working)

I don't recall ever seeing that. If you create a rule for that you might
also want to do octal notations too, which is another valid address
encoding syntax that should never appear naturally.

I see it in about 10% of cases where the IP address is in the hostname.


c) does the hostname in the PTR record actually going to an A record which includes the relay's IP addr

that's a reasonable test

Reply via email to