Spamc is slowwww
Gunnar Kramm
gkramm at speakeasy.net
Thu Sep 16 06:35:56 UTC 2004
On Wed, Sep 15, 2004 at 10:08:27PM -0700, joe wrote:
>
> All:
>
>
>
> I have a FC2 box running the lastest updates.
>
>
>
> I'm checking out spamc and I go to test it like so:
>
> -------------------------------------
>
> [root at luke spamassassin]# time spamc -c <
> /usr/share/doc/spamassassin-2.63/sample-nonspam.txt
> 0.1/5.0
>
> real 0m40.267s
> user 0m0.001s
> sys 0m0.005s
> [root at luke spamassassin]# time spamc -c <
> /usr/share/doc/spamassassin-2.63/sample-spam.txt
> 1001.4/5.0
>
> real 0m20.127s
> user 0m0.002s
> sys 0m0.004s
> [root at luke spamassassin]# ps -fade | grep spam
> root 2136 1 0 Sep08 ? 00:00:00 /usr/bin/spamd -d -c -a -m5
> -H
> ------------------------------------
[ snip ]
Joe,
it's actually how you have spamd running that is taking all the time. If you run spamd in
local mode it will skip DNS and other network tests and work a lot faster.
You just have to start spamd with the flag -L as such
/usr/bin/spamd -d -c -a -m5 -L
--
Gunnar vS Kramm
San Francisco, CA
http://www.thekramms.com
gpg public key:
http://thekramms.com/keys/gkramm.gpg
More information about the users
mailing list