Bayes problem
Glenn Steen
glenn.steen at gmail.com
Fri Jun 1 14:40:48 IST 2012
On 1 June 2012 14:20, Joolee <mailscanner at joolee.nl> wrote:
> Just for the archive: Yes, that should be correct.
> There should be no local.cf and there should be a symlink to
> spam.assassin.prefs.conf in your spamassassins config folder
> (/etc/spamassassin for most)
> Solution you suggested does exactly that.
>
Actually.... whether you have a local.cf file or not is immaterial.
What matters is
1) content of the files,
2) order they're read
If there are no overlapping settings, it is quite OK to have any
number of .cf files... On the contrary, I'm sure you will have a
number of them;-).
As always, know your config and you'll be just fine.
Cheers
--
-- Glenn
>
> On 1 June 2012 13:22, Nenad Vijatov <nenad.vijatov at gmail.com> wrote:
>>
>> OK, If I understand you, steps are:
>>
>> 1. rename local.cf to local.cf_whatever in /etc/mail/spamassassin/
>> 2. make symbolic link /etc/MailScanner/spam.assassin.prefs.conf to
>> /etc/mail/spamassassin/mailscanner.cf
>> 3. restart MailScanner
>>
>> Am I right? :)
>> So spamassassin ONLY read config files from /etc/mail/spamassassin by
>> default, and because of that we need config file on that path?
>>
>>
>> --
>> Cheers!
>> Nenad Vijatov
>>
>>
>>
>> On Fri, Jun 1, 2012 at 12:54 PM, Glenn Steen <glenn.steen at gmail.com>
>> wrote:
>>>
>>> MS call SA directly, via the perl function, yes.
>>> Verify if you have thevstandard symbolic link with:
>>> ls -l /etc/mail/spamassassin/mailscanner.cf
>>>
>>> If not present, create it with some tävling like:
>>> ln -s /path/to/spam.assassim.prefs.conf
>>> /etc/mail/spamassassin/mailscanner.cf
>>> ... where you replace /path/to/ with the files actual location on your
>>> system.
>>>
>>> --
>>> -- Glenn
>>>
>>> Den 1 jun 2012 12:43 skrev "Nenad Vijatov" <nenad.vijatov at gmail.com>:
>>>
>>>> As I know, my MailScanner is running under postfix user.
>>>> I dont have softlink, so I suppose that you mean to link
>>>> /etc/mail/spamassassin/local.cf to
>>>> /etc/MailScanner/spam.assassin.prefs.conf? I also think that MailScanner
>>>> does not use spamd by default, but call spamassasssin via perl API? Am I
>>>> right?
>>>>
>>>>
>>>> --
>>>> Greetings,
>>>> Nenad Vijatov
>>>>
>>>>
>>>>
>>>> On Thu, May 31, 2012 at 1:28 PM, Joolee <mailscanner at joolee.nl> wrote:
>>>>>
>>>>> As Arjan stated, use sa-learn with sudo to run it in the same user as
>>>>> Mailscanner uses.
>>>>>
>>>>> Also, there should be a softlink in your /etc/spamassassin folder to
>>>>> /etc/MailScanner/spam.assassin.prefs.conf. If there isn't, changing the
>>>>> spam.assassin.prefs.conf will produce weird results.
>>>>>
>>>>> Are you aware that Mailscanner doesn't use spamd but runs spamassassin
>>>>> directly by its perl API?
>>>>>
>>>>> On 31 May 2012 11:49, Nenad Vijatov <nenad.vijatov at gmail.com> wrote:
>>>>>>
>>>>>> Hi guys,
>>>>>>
>>>>>> I have a problem with spamassassin bayes autolearn, exactly the
>>>>>> problem is I have different bayed db:
>>>>>>
>>>>>> sa-learn --dump magic:
>>>>>> 0.000 0 3 0 non-token data: bayes db
>>>>>> version
>>>>>> 0.000 0 27 0 non-token data: nspam
>>>>>> 0.000 0 0 0 non-token data: nham
>>>>>> 0.000 0 28179 0 non-token data: ntokens
>>>>>>
>>>>>> sa-learn --dump magic -p /etc/MailScanner/spam.assassin.prefs.conf:
>>>>>> 0.000 0 3 0 non-token data: bayes db
>>>>>> version
>>>>>> 0.000 0 89 0 non-token data: nspam
>>>>>> 0.000 0 135 0 non-token data: nham
>>>>>> 0.000 0 21025 0 non-token data: ntokens
>>>>>>
>>>>>> Is this a problem with wrong configuration, does my spamassassin use
>>>>>> spam.assassin.prefs.conf or not? And how I can be sure that my spamassassin
>>>>>> uses spam.assassin.prefs.conf or not, and which one of those two dumps are
>>>>>> the right one that spamassassin use?
>>>>>>
>>>>>>
>>>>>> Thank you & Cheers!
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> MailScanner mailing list
>>>>>> mailscanner at lists.mailscanner.info
>>>>>> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>>>>>>
>>>>>> Before posting, read http://wiki.mailscanner.info/posting
>>>>>>
>>>>>> Support MailScanner development - buy the book off the website!
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> MailScanner mailing list
>>>>> mailscanner at lists.mailscanner.info
>>>>> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>>>>>
>>>>> Before posting, read http://wiki.mailscanner.info/posting
>>>>>
>>>>> Support MailScanner development - buy the book off the website!
>>>>>
>>>>
>>>>
>>>> --
>>>> MailScanner mailing list
>>>> mailscanner at lists.mailscanner.info
>>>> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>>>>
>>>> Before posting, read http://wiki.mailscanner.info/posting
>>>>
>>>> Support MailScanner development - buy the book off the website!
>>>>
>>>
>>> --
>>> MailScanner mailing list
>>> mailscanner at lists.mailscanner.info
>>> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>>>
>>> Before posting, read http://wiki.mailscanner.info/posting
>>>
>>> Support MailScanner development - buy the book off the website!
>>>
>>
>>
>> --
>> MailScanner mailing list
>> mailscanner at lists.mailscanner.info
>> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>>
>> Before posting, read http://wiki.mailscanner.info/posting
>>
>> Support MailScanner development - buy the book off the website!
>>
>
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>
--
-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se
More information about the MailScanner
mailing list