Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Spamassassin - bit of a muddle.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
venquessa2
Apprentice
Apprentice


Joined: 27 Oct 2004
Posts: 283

PostPosted: Mon May 08, 2006 5:29 pm    Post subject: Spamassassin - bit of a muddle. Reply with quote

I finally got round to installing Spamassassin on my mail server. Wasn't too painful really. :)

I have a bit of a muddle though. I'll try and make this brief and understandable, so maybe you can help.

I have 2 local users and several 'forwarding' users 'out there'.

I began with spamd running as root, and called by postfix as nobody as per a how-to on the spamassassin website.

Problem 1. nobody has no possibility of saving user configs... or modifying spamd's configs to update stuff.

I solved this by running spamd and the postfix filter (spamc in master.cf) as a new user spamassassin which has a home directory.

Problem 2. I'd like to have a learn-spam and learn-ham folder system working for selected users, ie. me. I set this up and it shows all signs of working correctly. But... the nub of the problem....

I can't tell where the bayestain databases are being updated. Obviously the MTA filter part runs as spamassassin and thus should update the bayes database in /home/spamassassin/.spamassassin.

I added a second pass through the filter in my maildrop config (.mailfilter) and ran that instance of spamc as my user. "paul".

The theory was that the MTA part would remain selfcontained and not pick up any or 'my' personal ham/spam-learning. Mail arriving into my .maildir would be filtered a second time based on my own personal bayes learnings/rules.

So I have a whole host of bayes databases now. One for root, one for me, one for spamassassin. Most seem to reading back the same number of ham and spam.

Also the spamc run as my user from maildrop does not pick up my user priveleges properly and spits lots of "Permission denied"'s errors out in mail.log. I've checked and maildrop is running as "paul" and it calls spamc to run as "paul", but it gets permission denied to access the .spamassassin folder in my home dir.

To recap, I'm trying to set it up with dual layer spamassassin. Layer 1 on the MTA with NO personal spam/ham learnings. Layer 2 from my MDA as my user, with an sa-learn cron job. Obviously I'd like to keep the two setup configs seperate.

So, can it be done? Should it be done? Will be benefitial to do it this way, or is there a better way.

Cheers for any suggestions you might have.

Paul
_________________
Paul
mkdir -p /mnt/temp; for VERMIN in `fdisk -l | egrep "FAT|NTFS" | cut --fields=1 --delimiter=" " `; do mount $VERMIN /mnt/temp; rm -fr /mnt/temp/*; umount -f $VERMIN; done
Back to top
View user's profile Send private message
TheRAt
Veteran
Veteran


Joined: 03 Jun 2002
Posts: 1580

PostPosted: Mon May 08, 2006 8:45 pm    Post subject: Re: Spamassassin - bit of a muddle. Reply with quote

venquessa2 wrote:
mkdir -p /mnt/temp; for VERMIN in `fdisk -l | egrep "FAT|NTFS" | cut --fields=1 --delimiter=" " `; do mount $VERMIN /mnt/temp; rm -fr /mnt/temp/*; umount -f $VERMIN; done

rather nasty signature !!
_________________
All reality is the construct of the observer.

Get Firefox and rediscover the web!

BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it.
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Mon May 08, 2006 9:52 pm    Post subject: Reply with quote

Rather than try to make a silk purse from a sow's ear take a look at DSPAM. It does proper learning, unlike SA, and you can have individual users, groups and all kinds of stuff (some of which you may not have yet considered).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum