per_user prefs not working ?

Steve Freegard steve.freegard at LBSLTD.CO.UK
Mon Dec 8 17:02:12 GMT 2003

Hi Stuart,

This doesn't work as you expect because MailScanner runs as a daemon under
the account specified by 'Run As User/Run As Group' settings in
MailScanner.conf (default=root) so will pick-up the home directory set-up
for that account (~/.spamassassin/ is the default).

I'm not sure that the Advanced SpamAssassin Settings are able to handle a
ruleset as I've never tried this (and don't plan to) - but you *might* be
able to do this to get it to work as you want:


SpamAssassin User State Dir = /etc/MailScanner/rules/sa_prefs.rules

Which contains:

FromOrTo:       your at        /home/test/.spamassassin/
FromOrTo:       default                         /root/.spamassassin/

You'll soon know if this value isn't able to handle a ruleset as MailScanner
should complain on start if not.

Hope this helps.

Kind regards,

Steve Freegard
Systems Manager
Littlehampton Book Services Ltd.

-----Original Message-----
From: Stuart Clark [mailto:newsgroup2 at SPACELINK.COM.AU]
Sent: 08 December 2003 14:43
Subject: per_user prefs not working ?


I am trying to get the per_user preferences working

I set SpamAssassin User State Dir = ~/.spamassassin/
in /etc/MailScanner.conf

I then created a  .spamassassin directory in my home dir

I then create a file user_prefs in this directory

inside the user_prefs file i put  required_hits  10

i then chown and chmod accordingly

Restart MailScanner and send a test spam.

The headers still tell me it is working on a required hits of 5

What am i doing wrong?


Stuart Clark RHCE
Spacelink Communications Pty Ltd

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender and delete the message from your mailbox.

This footnote also confirms that this email message has been swept by
MailScanner ( for the presence of computer viruses.

More information about the MailScanner mailing list