[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

spamassassin returned message

Posted on 2006-06-07
2
Medium Priority
?
258 Views
Last Modified: 2010-04-20
when I run
spamassassin -D --lint

I got messages like

[21999] dbg: config: using "/etc/mail/spamassassin" for site rules dir
[21999] dbg: config: read file /etc/mail/spamassassin/local.cf
[21999] info: config: can not determine userstate dir
[21999] warn: config: could not find userprefs file

so what is suppose the last 2 lines means ?

I run the command as root and the 2 lines are not there. Is spamassassin suppose to be run as root ?
0
Comment
Question by:ChanYiuPong
  • 2
2 Comments
 
LVL 22

Accepted Solution

by:
pjedmond earned 1000 total points
ID: 16859548
Spamassassin can be run as any user.

When run as a non-root user, spamassissin first reads the 'global' spam assassin settings, and then these can be over-ridden by the local user settings enabling the user to customise the spam-assassin setup for their mail. The user file is normally:

~/.spamassassin/user_prefs

The above messages indicate that this file does not exist. Merely create it (as a blank file), and those warnings will go.

Here for a information/list of possible settings in this file if you wish to customise the spamassassin behaviour:

http://spamassassin.apache.org/full/3.0.x/dist/doc/Mail_SpamAssassin_Conf.html

HTH:)
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 16859558
..or, as the user concerned, to make it nice and simple:

mkdir ~/.spamassassin
touch ~/.spamassassin/user_prefs

and the messages will not occur;)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month17 days, 23 hours left to enroll

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question