You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Robert Fitzpatrick <li...@webtent.net> on 2007/04/09 19:07:35 UTC

Debugging my config

I am getting reports a quite a few spam messages and found a lot when
looking in our archives. Trying to debug our SA 3.1.7 configuration, I
am finding the following when doing 'sa-update -D', we do seem to be
getting a lot of stock symbol spam getting through. If I clear out the
updates from the last ran sa-update and run again, I see this...

sa-update -D --updatedir /usr/local/share/spamassassin --channel updates.spamassassin.org
<snip>
[43171] dbg: rules: running meta tests; score so far=-0.001
[43171] info: rules: meta test STOCK_IMG_OUTLOOK has undefined dependency '__ANY_IMAGE_ATTACH'
[43171] info: rules: meta test STOCK_IMG_OUTLOOK has undefined dependency '__ENV_AND_HDR_FROM_MATCH'
[43171] info: rules: meta test DIGEST_MULTIPLE has undefined dependency 'RAZOR2_CHECK'
[43171] info: rules: meta test DIGEST_MULTIPLE has undefined dependency 'DCC_CHECK'
[43171] info: rules: meta test DIGEST_MULTIPLE has undefined dependency 'PYZOR_CHECK'
[43171] info: rules: meta test STOCK_IMG_HTML has undefined dependency '__ANY_IMAGE_ATTACH'
[43171] info: rules: meta test STOCK_IMG_HTML has undefined dependency '__ENV_AND_HDR_FROM_MATCH'
[43171] info: rules: meta test STOCK_IMG_HTML has undefined dependency '__PART_STOCK_CID'
[43171] info: rules: meta test TVD_FW_GRAPHIC_ID3 has undefined dependency '__TVD_OUTLOOK_IMG'
[43171] info: rules: meta test SHORT_HELO_AND_INLINE_IMAGE has undefined dependency '__ANY_IMAGE_ATTACH'
[43171] info: rules: meta test STOCK_IMG_HDR_FROM has undefined dependency '__ANY_IMAGE_ATTACH'
[43171] info: rules: meta test STOCK_IMG_HDR_FROM has undefined dependency '__ENV_AND_HDR_FROM_MATCH'
[43171] info: rules: meta test STOCK_IMG_HDR_FROM has undefined dependency 'TVD_FW_GRAPHIC_ID1'
<snip>

Also, I ran sa-update alone and noticed on our FreeBSD system that it
was putting the updates in the wrong place
'/var/lib/spamassassin/3.001.007' and then ran sa-update again with the
--updatedir option of the correct directory of
'/usr/local/share/spamassassin', but the spamassassin -D still shows the
former being used. How can I get it using the latter? I guess this does
not matter as long as the updates are found.

Thanks in advance for the help!

-- 
Robert


Re: Debugging my config

Posted by Robert Fitzpatrick <li...@webtent.net>.
On Mon, 2007-04-09 at 13:13 -0400, Theo Van Dinter wrote:
> On Mon, Apr 09, 2007 at 01:07:35PM -0400, Robert Fitzpatrick wrote:
> > sa-update -D --updatedir /usr/local/share/spamassassin --channel updates.spamassassin.org
> 
> Do you have a reason to be using --updatedir?  If not, stop it.
> 
> > Also, I ran sa-update alone and noticed on our FreeBSD system that it
> > was putting the updates in the wrong place
> > '/var/lib/spamassassin/3.001.007' and then ran sa-update again with the
> > --updatedir option of the correct directory of
> > '/usr/local/share/spamassassin', but the spamassassin -D still shows the
> > former being used. How can I get it using the latter? I guess this does
> > not matter as long as the updates are found.
> 
> You're breaking your installation.  If you don't have a reason to change the
> defaults, don't change them.
> 

Got ya, thanks! I saw that somewhere about changing the updatedir on our
FreeBSD port installed package. Anyway, either way, if I remove the
updates from /var/lib/spamassassin/3.001007 and run 'sa-update', I still
see the following. Looks like some things are not working? I have razor,
dcc and pyzor installed.

esmtp# sa-update -D
<snip>
[45134] dbg: rules: running meta tests; score so far=-0.001
[45134] info: rules: meta test STOCK_IMG_OUTLOOK has undefined dependency '__ANY_IMAGE_ATTACH'
[45134] info: rules: meta test STOCK_IMG_OUTLOOK has undefined dependency '__ENV_AND_HDR_FROM_MATCH'
[45134] info: rules: meta test DIGEST_MULTIPLE has undefined dependency 'RAZOR2_CHECK'
[45134] info: rules: meta test DIGEST_MULTIPLE has undefined dependency 'DCC_CHECK'
[45134] info: rules: meta test DIGEST_MULTIPLE has undefined dependency 'PYZOR_CHECK'
[45134] info: rules: meta test STOCK_IMG_HTML has undefined dependency '__ANY_IMAGE_ATTACH'
[45134] info: rules: meta test STOCK_IMG_HTML has undefined dependency '__ENV_AND_HDR_FROM_MATCH'
[45134] info: rules: meta test STOCK_IMG_HTML has undefined dependency '__PART_STOCK_CID'
[45134] info: rules: meta test TVD_FW_GRAPHIC_ID3 has undefined dependency '__TVD_OUTLOOK_IMG'
[45134] info: rules: meta test SHORT_HELO_AND_INLINE_IMAGE has undefined dependency '__ANY_IMAGE_ATTACH'
[45134] info: rules: meta test STOCK_IMG_HDR_FROM has undefined dependency '__ANY_IMAGE_ATTACH'
[45134] info: rules: meta test STOCK_IMG_HDR_FROM has undefined dependency '__ENV_AND_HDR_FROM_MATCH'
[45134] info: rules: meta test STOCK_IMG_HDR_FROM has undefined dependency 'TVD_FW_GRAPHIC_ID1'
<snip>

-- 
Robert


Re: Debugging my config

Posted by Theo Van Dinter <fe...@apache.org>.
On Mon, Apr 09, 2007 at 01:07:35PM -0400, Robert Fitzpatrick wrote:
> sa-update -D --updatedir /usr/local/share/spamassassin --channel updates.spamassassin.org

Do you have a reason to be using --updatedir?  If not, stop it.

> Also, I ran sa-update alone and noticed on our FreeBSD system that it
> was putting the updates in the wrong place
> '/var/lib/spamassassin/3.001.007' and then ran sa-update again with the
> --updatedir option of the correct directory of
> '/usr/local/share/spamassassin', but the spamassassin -D still shows the
> former being used. How can I get it using the latter? I guess this does
> not matter as long as the updates are found.

You're breaking your installation.  If you don't have a reason to change the
defaults, don't change them.

For example, using --updatedir is covered in the FAQ:
http://wiki.apache.org/spamassassin/RuleUpdates

-- 
Randomly Selected Tagline:
"Of course, the more I learn, the more I realize I don't know.  At some
 point, I hope to learn enough to realize that I know nothing at all.
 Then maybe I'll be able to snatch a pebble from Julia Child's hand."
         - Alton Brown, "I'm Just Here For The Food"