Robert Fitzpatrick wrote:
> On Wed, 2005-12-14 at 18:29 -0500, Matt Kettler wrote:
> 
>>For DNS, well, DNS lookups are by nature slow, and SA makes a lot of them. You
>>can improve the speed a little by running a caching nameserver on the local
>>host, but that's not a "fix-all".
> 
> 
> Ah, that is one difference between this server and one before, BIND was
> on the server before, but I don't think the server was using localhost
> for DNS, it was using the same as I am now using on this server. Would
> spamassassin use localhost DNS over outside if the system is set to a
> different server on the network?

No. SpamAssassin uses the servers out of /etc/resolv.conf.

Personally I prefer to keep at least a forward-only caching server on localhost
and include it as the first nameserver in /etc/resolv.conf. This really saves a
lot of time as many of the DNS queries issued by SA will be repeated as it sees
spam from the same source IP over and over and over again.

It doesn't help for the first message, but helps a lot for the follow-up ones
with the same RBL entries.



>>Note that "phase 2" reflects the time in seconds to scan 2000 messages using
>>spamc. Mysql and SDBM are nearly 3 times faster at this.
>>
>>Since sql is well-tested, that might be a better way for you to go. SDBM has
>>some issues.
> 
> 
> I have mysql on the server already, I guess I can change this in
> local.cf, can lookup the instructions for changing over, any thoughts or
> warnings? 

Search the wiki, the wiki is your friend. :)

> 
> You the man, been struggling with this since yesterday on the amavis and
> postfix lists.
> 

Good luck!

Reply via email to