Fedora Linux Support Community & Resources Center
  #1  
Old 6th October 2005, 02:15 PM
baerrs Offline
Registered User
 
Join Date: Jul 2004
Posts: 1
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 With Quote
Reply

Tags
problems, spamassassin

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 10: Evolution/Spamassassin: Pipe to SpamAssassin failed, error code: 1 A. Gideon Using Fedora 3 23rd December 2008 11:41 AM
SpamAssassin 3.1.7 on FC3 pr0t Using Fedora 0 13th November 2006 07:20 PM
Spamassassin 3.0 on FC2 bitwise Servers & Networking 0 1st December 2004 07:27 PM
Spamassassin problems Nattyman Using Fedora 2 27th April 2004 03:36 PM


Current GMT-time: 12:42 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat