Bill Shupp wrote:

Nick Gilbert wrote:

Hi,

I've asked this on the SA mailing list as well, but I think it's more likely it's a setup issue. I've followed Bills instructions exactly - the only additions being that I've installed Razor2 and DCC.

Why do I get (VERY) different results on the same machine if I call spamassassin in two different ways? Eg:

spamassassin -D < spam.txt

Gives:

X-Spam-Status: Yes, score=10.8 required=5.0 tests=AWL,HELO_DYNAMIC_COMCAST,INFO_TLD,RAZOR2_CF_RANGE_51_100,RAZOR2_CHECK,RCVD_IN_BL_SPAMCOP_NET,

        RCVD_IN_SORBS_DUL,URIBL_OB_SURBL,URIBL_SBL autolearn=unavailable
        version=3.0.3

but:

spamc < spam.txt

gives:

X-Spam-Status: No, score=4.8 required=5.0 tests=HELO_DYNAMIC_COMCAST,INFO_TLD
autolearn=no version=3.0.3


Surely they should both give exactly the same result?


Make sure they are run as the same user, and use the same options. I get exactly the same results from these:

su vpopmail

spamc <  /root/.cpan/build/Mail-SpamAssassin-3.0.2/sample-spam.txt

X-Spam-Status: Yes, score=994.1 required=5.0 tests=ALL_TRUSTED,BAYES_00,GTUBE
autolearn=unavailable version=3.0.2-20050309



spamassassin -x < /root/.cpan/build/Mail-SpamAssassin-3.0.2/sample-spam.txt
X-Spam-Status: Yes, score=994.1 required=5.0 tests=ALL_TRUSTED,BAYES_00,GTUBE
autolearn=unavailable version=3.0.2-20050309



Note the use of the -x argument with spamassassin. Without -x, I get different results.


Regards,

Bill

You have to change /service/spamd/run to :

#!/bin/sh
exec /usr/bin/spamd -x -u vpopmail -s stderr 2>&1


I believe that means that you skip the -d (I kinda forgot) ..the -d would stand for only standard spamd checking.....without the -d it'll look for razor and DCC.


Kind regards,

Jeroen

--
_________________________________________________________________
http://www.MuntInternet.nl - e-mail: [EMAIL PROTECTED]
adres: W.Lodewijkstraat 26 - Postcode: 8501 LE - Plaats: Joure
telefoon: +31(0)513-416616 - fax: +31(0)513-419800
mobiel: +31(0)6-21976321 icq: 3622144 msn: [EMAIL PROTECTED]
_________________________________________________________________




Reply via email to