If the definition of insanity is doing the same thing multiple times and
expecting a different result, what is it when you're doing the same thing
multiple times, expecting the same result, and you get DIFFERENT results?
That's what seems to be happening to me.  I've been trying to search the
archives for any helpful information, but I'm having difficulty in
extracting anything that might be of use.

For some reason, I can't seem to get all the features on SpamAssassin to
work at the same time. Allow me to elaborate - here's what I've got:

        * OS: Fedora Core 2
        * MTA: Sendmail 8.12.11-4.6
        * Spamassassin: 3.0.2-1.1.fc2.rf
        * Spamass-milter: 0.3.0-1.1.fc2.rf

Here's what I want to do with them:

        * The spamd/spamass-milter processes should not run as root (user
'spamassassin').
        * I want a single set of user preferences/bayes DB.
          While additional user preferences could in theory be OK,
          I want only one Bayes DB. * As the above may mention, I want to
          use the Bayes DB for learning and auto-learning.
        * I want tagged spam to rewrite the subject.
        * I want to attch the original message to the report.
        * I want to use RBLs for things not covered otherwise in sendmail
          (i.e. for URLs in the messages)
        * I want to use Razor/Pyzor
        * Eventually, I may drop egregious spam examples,
          but I'm not sure I want to do that yet.

What seems to happen is that I can get some subset of these things, but not
all at once. Additionally, while I often think I've got things working
correctly, they appear to change randomly from working to non-working. The
last point, on dropping spam, seems to be happening anyway. From what I can
tell, anything with a score greater than 15 is being rejected automatically.
This is seriously reducing my spam load.

As I mentioned last week, I was getting "autolearn=failed" when BAYES_00 was
the only rule that hit. If I got ANY other rule that also hit, autolearn did
not fail. At least part of the problem there had to do with creating the
lock file for the Bayes DB; Even though I thought I was running as root, and
root owned the directory in question (/etc/mail/spamassassin) I needed to
open the permissions in order for things to work correctly.

>From what I see now, this is because if root is running it then the user
shifts to 'nobody'. This is damn inconvenient. So, I've tried to shift to
using user 'spamassassin' by using the "-u spamassassin" switch on both
spamd and spamass-milter. When I do this, though, I can't actually read the
user_prefs file for user root. But why am I even trying to open it for root,
when spamassassin is the UID?

The biggest problem right now is that for some reason message rewriting has
stopped for spam messages.  The header is tagged correctly, but the message
is never rewritten.  From my local.cf file (below), it looks like this
should be happening.  I don't know of any change I made which could account
for this, and indeed this seemed to happen overnight, when I didn't do
anything.

[local.cf]
required_score          5
rewrite_header Subject  *** SPAM: _SCORE_ points ***
#subject_tag            [SPAM?]
report_safe             1
#use_terse_report       0
use_bayes               1
#bayes_path             /etc/mail/spamassassin/bayes_db
bayes_path              /SA-shared/bayes_db
bayes_file_mode         0666
bayes_auto_learn        1
skip_rbl_checks         0
use_razor2              1
use_dcc                 1
use_pyzor               1
trusted_networks        192.168/16 127/8
ok_languages            en he ru yi
ok_locales              en ru

[user_prefs for root]
# How many hits before a mail is considered spam.
 required_score         5

# Whitelist and blacklist addresses are now file-glob-style patterns, so
# "[EMAIL PROTECTED]", "[EMAIL PROTECTED]", or "*.domain.net" will all work.
# whitelist_from        [EMAIL PROTECTED]
auto_whitelist_path     /etc/mail/spamassassin/auto-whitelist
auto_whitelist_file_mode        0666


bayes_auto_learn        1


score BIZ_TLD                   4.5
score RCVD_IN_SORBS_DUL         0.1
score RCVD_IN_SORBS_WEB         0.5
score SUBJECT_DRUG_GAP_C        3.5
score SUBJECT_DRUG_GAP_L        3.5
score SUBJECT_DRUG_GAP_VIA      3.5
score VIA_GAP_GRA               3.5
score FORGED_YAHOO_RCVD         1.5
score GAPPY_SUBJECT             2.5
score HTML_IMAGE_ONLY_04        3.5

score   BAYES_00 0 0 -4.901 -4.900
score   BAYES_05 0 0 -0.925 -2.599
score   BAYES_20 0 0 -0.730 -1.951
score   BAYES_40 0 0 -0.276 -1.096
score   BAYES_50 0 0  1.567  0.001
score   BAYES_60 0 0  3.515  1.592
score   BAYES_80 0 0  3.608  2.087
score   BAYES_95 0 0  3.514  3.514
score   BAYES_99 0 0  4.070  5.400

I don't want to clog up the bandwidth with too many files in-line that may
not be of use, so I've got:

http://www.eruditer.org:6080/spamassassin/local.cf
http://www.eruditer.org:6080/spamassassin/root-user_prefs
http://www.eruditer.org:6080/spamassassin/sysconfig-spamassassin
http://www.eruditer.org:6080/spamassassin/sysconfig-spamassassin-milter

Any help or information would be greatly appreciated.
Tnanks,
 -Don

Reply via email to