David Jones wrote:
Would it be beneficial to add a local.cf config option to allow SA to
specify a different DNS server rather than what the OS is using in
/etc/resolv.conf?

IIRC it does, and a quick scan of the Mail::SpamAssassin::Conf man page turned up:

       dns_server ip-addr-port  (default: entries provided by Net::DNS)
           Specifies an IP address of a DNS server, and optionally its
           port number.  The dns_server directive may be specified
           multiple times, each entry adding to a list of available
           resolving name servers. The ip-addr-port argument can either
           be an IPv4 or IPv6 address, optionally enclosed in brackets,
           and optionally followed by a colon and a port number. In
           absence of a port number a standard port number 53 is
           assumed. When an IPv6 address is specified along with a port
           number, the address must be enclosed in brackets to avoid
           parsing ambiguity regarding a colon separator. A scoped
           link-local IP address is allowed (assuming underlying
           modules allow it).

           Examples :
            dns_server 127.0.0.1
            dns_server 127.0.0.1:53
            dns_server [127.0.0.1]:53
            dns_server [::1]:53
            dns_server fe80::1%lo0
            dns_server [fe80::1%lo0]:53

           In absence of dns_server directives, the list of name
           servers is provided by Net::DNS module, which typically
           obtains the list from /etc/resolv.conf, but this may be
           platform dependent. Please consult the Net::DNS::Resolver
           documentation for details.

-kgd

Reply via email to