*Why does the DNS server have to have an MX record* for SA to approve of it? Why can't SA just look for a valid DNS server? Or even a valid MX record for my domain/host?
I have a local caching DNS server. Works perfectly - far better than putting my ISP's servers or others in /etc/resolv.conf - faster and far more reliable.
I also make good use of SA's RBL servers, wouldn't be without them.
However, running 'spamassassin -D -t < spam-message' show that for the DNS tests to be recognized, the DNS server has to have an MX record:
debug: is Net::DNS::Resolver available? yes
debug: servers: localhost
debug: Looking up MX records for user specified servers: localhost
debug: trying (3) localhost...
debug: looking up MX for 'localhost'
debug: MX for 'localhost' exists? 1
debug: MX lookup of localhost succeeded => Dns available (set dns_available to hardcode)
debug: is DNS available? 1
Swapping localhost for a DNS server on the Internet gives the same: the DNS server has to have an MX record.
If I have an MX record for localhost ( also my DNS server), my MTA is liable to say: "mail for localhost loops back to myself" or words to that effect. Exim 4 has a filter for this that can ignore such things. Previous Postfix versions have given this problem - though my current one doesn't seem to, at the moment.
Though I feel like I'm walking on water by putting the MX record back into my localhost.zone.
My ISP's DNS servers are useless (won't do recursive lookups) and others don't work well either. SA's 13 DNS servers are useless - I get Dns.pm faults at line 305 and nothing works. What doesn't work doesn't matter, my question is : why does a DNS server (of all things) have to have an MX record for "dns_available test:" to work? Why should any DNS server *have* to have an MX record?
Best,
Tony
-- Tony Earnshaw
I love the music of Wagner. The only sound that pleases me more is that of a cat outside my 9th floor window, trying to cling to the glass with its claws.
http://j-walk.com/blog/docs/conference.htm http://www.billy.demon.nl Mail: [EMAIL PROTECTED]
------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk