From: "Geoff Soper" <[EMAIL PROTECTED]>
Hi,
I'm getting the following three warning in my procmail log (machine name
removed, just in case!), I assume I'm missing some configuration
somewhere but don't know where! Can someone advise?
Thanks,
Geoff
[8162] warn: config: cannot write to //.spamassassin/user_prefs: No such
file or directory
[8162] warn: config: failed to create default user preference file
//.spamassassin/user_prefs
[8162] warn: auto-whitelist: open of auto-whitelist file failed: locker:
safe_lock: cannot create tmp lockfile
//.spamassassin/auto-whitelist.lock.<<machine_name>>.8162 for
//.spamassassin/auto-whitelist.lock: No such file or directory
Somehow you have spamassassin's user setup to have a home directory
of "/". Fix that and you'll be happier. This may be in procmail since
that seems to be how you call SA.
Are you intending to run as a global Bayes and rules or are you
intending to run individual rules and Bayes? Discussion below
presumes individual rules and Bayes.
You need "DROPPRIVS=yes" somewhere near the front of your .procmailrc.
Then you need to call spamc. The sum total would look like this below.
Be sure to replace <username> with the actual user or a macro that
is defined as the the user id.:
===8<---
DROPPRIVS=yes
# Other procmail rules to preprocess email before SpamAssassin
# go here.
# Then we run SpamAssassin via spamc. I run it this way because I
# sometimes put additional procmail rules inside the braces, I don't
# scan files larger than 500k, and I do not scan files to any of the
# spamassassin mailing lists.
:0
* < 500000
* !^List-Id: .*(spamassassin\.apache.\org)
{
:0 fw: spamassassin.lock
| /usr/bin/spamc -t 150 -u <username>
}
===8<---
The spamc part can be reduced to this at it's simplest:
===8<---
:0 fw: spamassassin.lock
| /usr/bin/spamc -t 150 -u <username>
===8<---
I included the version I use for such educational value as it might
have.
{^_^}