LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-07-2005, 01:41 PM   #1
BaerRS
Member
 
Registered: Oct 2001
Location: Columbus, Ohio
Distribution: all.. but mainly SuSe--- looks like it changing to Red Hat
Posts: 119

Rep: Reputation: 15
spamassassin problems


hi all,
Im trying to set up spamassassin to have a central repository under /var/spamassassin , so each user does not have a ~/$HOME/.spamassassin/ dir in there home dir. I know this is not the best solution, and can potentually confuse SA, but under my circomstances, I think this will be easier in the long run.

I'm running on updated FC3, SA SpamAssassin 3.0.4 (FC3 2005-06-05), SpamAssassin-milter (DAG) 0.3.0-1

I have edited the /etc/mail/spamassassin/local.cf :
required_hits 5
report_safe 0
rewrite_header Subject [SPAM]
bayes_path /var/spamassassin/
bayes_file_mode 0666
auto_learn 1
ok_languages en
ok_locales en

My spam ham learn script:

#!/bin/sh
# autolearn.sh
CONFIG=/etc/mail/spamassassin/
SPLOC=/var/spamassassin/

MYUSER="user1"
MYHOME="/home/$MYUSER"

USER_MAILSPOOL="/var/spool/mail/$MYUSER"
SPAM="$MYHOME/mail/spam"

echo "Spamassassin Learning spam: $SPAM"
sa-learn --dbpath $SPLOC --spam --mbox $SPAM

echo "Spamassassin Learning ham: $USER_MAILSPOOL"
sa-learn --dbpath $SPLOC --ham --mbox $USER_MAILSPOOL


my /var/log/maillog errors:


Oct 6 08:57:57 localhost spamd[3014]: Creating default_prefs [/root/.spamassassin/user_prefs]
Oct 6 08:57:57 localhost spamd[3014]: Cannot write to /root/.spamassassin/user_prefs: Permission denied

my /etc/sysconfig/spamassassin
SPAMDOPTIONS="-d -c -m5 -H -u nobody -- spamc --dbpath /var/spamassassin"

I've stoped and restared both spamassassin and spamass-milter after all changes were made... and it still trying to access the /root/.spamassassin/ for the tokens.

Any ideas, I'm lost
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with SpamAssassin Integration jpintag Linux - Security 2 07-05-2005 06:41 PM
Spamassassin, Exim, delay problems jademan83 *BSD 0 05-16-2005 04:23 PM
spamassassin w/ procmail vs. spamassassin w/sendmail bleunuit Linux - Networking 1 08-01-2004 07:12 AM
Exim/spamassassin problems tensigh Linux - Software 1 04-27-2004 05:01 AM
Problems with Procmail + Spamassassin timread Linux - Software 2 01-15-2004 09:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration