spamassassin returned message

Posted on 2006-06-07
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/
[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 ?
Question by:ChanYiuPong
    LVL 22

    Accepted Solution

    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:


    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:

    LVL 22

    Expert Comment

    ..or, as the user concerned, to make it nice and simple:

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

    and the messages will not occur;)

    Featured Post

    Gigs: Get Your Project Delivered by an Expert

    Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

    Join & Write a Comment

    Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
    I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    755 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now