cannot change scores in /etc/spamassassin/local.cf

Bug #702404 reported by Antonio J. de Oliveira
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
spamassassin (Ubuntu)
Invalid
Low
Unassigned

Bug Description

Binary package hint: spamassassin

Hello

Running ubuntu lucid lynx 2.6.32-27-generic-pae 32-bit and spamassassin 3.3.1
I can create rules and check that those are applied.
Any created rule has a score of 1.0, in spite I assign a score in local.cf with.

e.g.
header LOCAL_DEMONSTRATION_SUBJECT Subject =~ /\btest\b/i
score LOCAL_DEMONSTRATION_FROM 0.1

score<space>RULLE<tab>n.n

if i try to modify existing rules, the result is the same score is not applied.

all other options configured in local.cf work.

Cheers

Antonio

Revision history for this message
Antonio J. de Oliveira (ajoliveira) wrote :

Additionally:

Tried with allow_use_rules 1. Put a .spamassassin with a file user_prefs inside, on the user directory (I am running using a spamd user). Result is the same.

Best regards

Antonio

Revision history for this message
Antonio J. de Oliveira (ajoliveira) wrote :

The bug title should read:

cannot change scores in /etc/spamassassin/local.cf

sorry for the inconvenience...

Revision history for this message
Chuck Short (zulcss) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please answer these questions:
1. Is this reproducible?
2. If so, what specific steps should we take to recreate this bug? Be as detailed as possible.
This will help us to find and resolve the problem.

Changed in spamassassin (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Antonio J. de Oliveira (ajoliveira) wrote :

Hi

1. Yes, I have an installed system where the behavior is as described and does not change.
2. Just install the system.

This is what I did:

***************
Install Spamassassin
apt-get install spamassassin spamc
Configure Spamassassin user and group
We want it to run as non-root, so add a spamd user and group:

# groupadd spamd
# useradd -g spamd -s /bin/false -d /var/log/spamassassin spamd
# mkdir /var/log/spamassassin
# chown spamd:spamd /var/log/spamassassin
(This sets the spamd user's home directory as /var/log/spamassassin.)

Configure Spamassassin
Edit /etc/default/spamassassin so these options are set:

ENABLED=1

SAHOME="/var/log/spamassassin/"

OPTIONS="--create-prefs --max-children 2 --username spamd \
-H ${SAHOME} -s ${SAHOME}spamd.log"
--max-children spawns the specified number of child processes (you might need more on a busy server), --username specifies the username spamd runs under, -H sets the home directory, -s sets the log file.

(I left the rest of the file alone, and didn't touch /etc/spamassassin/local.cf.)

Start the Spamassassin daemon (spamd)
/etc/init.d/spamassassin start
(By default, spamassassin gets added to the startup scripts by Ubuntu, so it will start/stop with your system.)

Configure Postfix to use Spamassassin as a filter
This makes Postfix pipe email to Spamassassin once it's been received. Edit /etc/postfix/master.cf and add this line as the first line of the file:

smtp inet n - - - - smtpd
        -o content_filter=spamassassin
Add this to the end of the same file:

spamassassin unix - n n - - pipe
        user=spamd argv=/usr/bin/spamc -f -e
        /usr/sbin/sendmail -oi -f ${sender} ${recipient}

install libmail-spf-query-perl librazor2-perl pyzor dcc (the latter is extern to the repos)
verify if spf is there
perl -e 'require Mail::SPF::Query'
razor-admin -create
razor-admin -discover
razor-admin -register
pyzor discover

attached is my local.cf

I tried to create an user_prefs as attached on the .spamassassin directory under /var/log/spamassassin. As you see, my local.cf has allow_use_rules 1.

All file permissions were checked and are:

-rwxrwxr-x 1 root root 3247 2011-01-13 15:58 local.cf
-rwxrwxr-x 1 spamd spamd 1484 2011-01-17 17:57 user_prefs

 I am ready to conduct further tests you find adequate

Best regards

Antonio

Darxus (darxus)
summary: - cannot change scores in /etc/spamassassin/local.cf/local
+ cannot change scores in /etc/spamassassin/local.cf
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for spamassassin (Ubuntu) because there has been no activity for 60 days.]

Changed in spamassassin (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Antonio J. de Oliveira (ajoliveira) wrote :

Tested today and the bug is still there. It is not up to me to take further action, and the release I am referring to is an LTS.

Revision history for this message
Antonio J. de Oliveira (ajoliveira) wrote :

After further testing, marked as invalid, there was a typo in my local.cf as can be seen in my initial post. Thanks for your time.

Changed in spamassassin (Ubuntu):
status: Expired → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.