RE: newbie bayes_path question
> Ebbe Hjorth wrote:[color=blue][color=green]
>> I tried to find out howto use bayes_path on a mailserver with only[/color][/color]
virtual users?[color=blue][color=green]
>>
>> I searched my drive for "bayes" as the standard folder should be named[/color][/color]
in the /usr/local/etc/mail/spamassassin folder but nothing there.[color=blue][color=green]
>>
>> Do i just put bayes_path=/usr/local/etc/mail/spamassassin/bayes/ in the[/color][/color]
local.cf and spamassassin takes care of the rest? I just seems to easy
;)[color=blue]
>
> You're almost there. You just made one common mistake.
>[/color]
Nice to know that it is a common mistake :P
[color=blue]
>
> The bayes_path is not a directory. It's a path and a filename stub. Try[/color]
this:[color=blue]
>
> bayes_path=/usr/local/etc/mail/spamassassin/bayes/bayes
>
> You will need to create the /usr/local/etc/mail/spamassassin/bayes/[/color]
directory and then SA will create the bayes* files.[color=blue]
>
> Remember to restart spamd after making config changes.
>[/color]
I have created the directory, restartet sa-spamd, run sa-update, but the
/usr/local/etc/mail/spamassassin/bayes/ directory is empty?
My local.cf looks like this now (without =)
trusted_networks X
internal_networks X
bayes_path /usr/local/etc/mail/spamassassin/bayes/bayes
bayes_file_mode 0770
dns_available yes
razor_config /var/spool/spamd/.razor/razor-agent.conf
add_header all DCC _DCCB_ _DCCR_
add_header ham SCL 1
add_header spam SCL 9
rewrite_header Subject ***SPAM***
Re: newbie bayes_path question
Ebbe Hjorth wrote:[color=blue][color=green]
>> Ebbe Hjorth wrote:[color=darkred]
>>> I tried to find out howto use bayes_path on a mailserver with only[/color][/color]
> virtual users?[color=green][color=darkred]
>>> I searched my drive for "bayes" as the standard folder should be named[/color][/color]
> in the /usr/local/etc/mail/spamassassin folder but nothing there.[color=green][color=darkred]
>>> Do i just put bayes_path=/usr/local/etc/mail/spamassassin/bayes/ in the[/color][/color]
> local.cf and spamassassin takes care of the rest? I just seems to easy
> ;)[color=green]
>> You're almost there. You just made one common mistake.
>>[/color]
>
> Nice to know that it is a common mistake :P
>[color=green]
>> The bayes_path is not a directory. It's a path and a filename stub. Try[/color]
> this:[color=green]
>> bayes_path=/usr/local/etc/mail/spamassassin/bayes/bayes
>>
>> You will need to create the /usr/local/etc/mail/spamassassin/bayes/[/color]
> directory and then SA will create the bayes* files.[color=green]
>> Remember to restart spamd after making config changes.
>>[/color]
>
> I have created the directory, restartet sa-spamd, run sa-update, but the
> /usr/local/etc/mail/spamassassin/bayes/ directory is empty?[/color]
the process that runs SA must be able to write there.
[color=blue]
>
> My local.cf looks like this now (without =)
>
> trusted_networks X
> internal_networks X
> bayes_path /usr/local/etc/mail/spamassassin/bayes/bayes
> bayes_file_mode 0770
> dns_available yes
> razor_config /var/spool/spamd/.razor/razor-agent.conf
> add_header all DCC _DCCB_ _DCCR_
> add_header ham SCL 1
> add_header spam SCL 9
> rewrite_header Subject ***SPAM***
>
>
>[/color]