LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Closed Thread
  Search this Thread
Old 08-01-2009, 05:09 PM   #1
monolit
Member
 
Registered: Aug 2009
Posts: 30

Rep: Reputation: 15
SA-learn (spamassassin)


Hello, I found out the following information:
my SPAMD daemon is running under root. But I have in master.cf(postfix configuration file) the following lines:

Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
-o content_filter=spamfilter:dummy


====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent. See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================

spamfilter unix - n n - - pipe
flags=Rq user=spamfilter argv=/usr/local/bin/spamfilter -f ${sender} -- ${recipient}


Spamfilter is user for spamassassin(spamd)(but for me is strange that spamd is running under root). I configured master.cf according to
h-t-t-p://onetforum.com/fourm/viewtopic.php?p=27]Kalinga's]Kalinga's Community Support Forum • View topic - Integrating Spam Assassin with Postfix(h-t-t-p replace by http)
It is recomended by spamassassin original www pages.


In local.cf I have: bayes_path /home/spamfilter/.spamassassin/bayes.

And now when I send mail(for example at 21:00 oclock) which spamassassin mark like autolearn= spam and I show to the /home/spamfilter/.spamassassin/bayes so I can see that files bayes_tooks nad bayes_seen was modified in 21:00 but their size didnt change? How is it possible - when spamssassin changes the files so they have to increase their size...When I type command sa-learn --dump magic so I can see that in row nspam increase his value +1. This is confirmation that autolearn works.(but the database dont increase his size).

My second problem: I get mail with sign autolearn=ham. I take the mail and I use the following command: sa-learn --spam --file mail (at 21:55 oclock)l. When type sa-learn --dump magic so I can see that nspam was increased +1 its OK. But when I look to the /home/spamfilter/.spamassassin I can see that database file was change but their size didnt change. Its normal???

And the last problem: When I get mail with sign autolearn=ham so I tried type sa-learn --spam --file mail. When I got the same mail so spamassassin mark the mail again autolearn=ham. How is it possible when I learn bayes by hand (sa-learn --spam --file mail) that this mail is spam? I have explicit set in local.cf bayes_min_spam_num 1. This means that for bayes is sufficient one mail for learning(according to me). But it dosesnt work.

Thanks for advise(I need it necessary).




Sorry for my terrible english.
 
  


Closed Thread



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
SA-learn (spamassassin) monolit Linux - Server 0 08-02-2009 05:48 AM
spamassassin garryhs Linux - Software 1 02-16-2007 03:56 AM
spamassassin and sa-learn syl20 Linux - Software 2 04-28-2005 03:50 AM
Spamassassin : how to enable auto learn? turbokid Fedora 1 12-14-2004 09:09 AM
spamassassin w/ procmail vs. spamassassin w/sendmail bleunuit Linux - Networking 1 08-01-2004 07:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:41 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