On Thursday 06 April 2006 16.15, Gabriel George POPA wrote:
>             Some e-mails I receive have autolearn=no and others have
> autolearn=failed. I use the classic combination of spamd/spamc and the
> OpenBSD 3.8 provided p5-SpamAssassin package, installed as OpenBSD
> recommends. I tried to follow the instructions at
> spamassassin.apache.org (to use for example /var/spamassassin (0777
> mode) in order to store learnt data, bayes_path and bayes_file_mode,
> restarted spamd etc., nothing worked). What should I do next? I must
> create all those files by hand (the files in /var/spamassassin). I must
> mention that when I was using spamassassin alone (not spamc/spamd) for
> my account autolearn worked correctly.
>
>
> Respectfully yours,
>
> Gabriel George POPA

This is what I have got (On 3.8 stable with spamassassin 3.0.4)....
[EMAIL PROTECTED]:/tmp#ls -al /var/spamassassin
total 20
drwxr-x---   5 _spamass  _spamass   512 Jan 31 15:42 .
drwxr-xr-x  32 root      wheel     1024 Feb 26 18:45 ..
drwxr-x---   2 _spamass  _spamass   512 Apr  5 16:42 .razor
drwx------   2 _spamass  _spamass   512 Apr  6 23:49 .spamassassin

The files and directories in /var/spamassassin will be automatically created
Note that the  _spamass users home directory is /var/spamassassin


In /etc/rc.local I have...
if [ X"${spamassassin_spamd}" == X"YES" -a -x /usr/local/bin/spamd \
    -a -e /etc/mail/spamassassin/local.cf ]; then
       echo -n ' Spamassassin spamd';         /usr/local/bin/spamd -d -p 3312 
-u _spamass --max-children=5 --max-conn-per-child=2000 -x
fi

It's called from sendmail through the smtp-vilter connector and it just works.  
smtp-vilter talks to spamd.

The only thing you need in /etc/mail/spamassassin/local.cf is... nothing. Well 
you should probably to some tuning. You should probably have:
--snip--
required_score           5.0
report_safe             1
use_bayes               1
skip_rbl_checks         0
--snip--

No path statement is needed in local.cf if you have the correct path for the 
Bayesian db as stated above.

Hope it could be of any use.

Regards
/Per-Olov
-- 
GPG keyID: 4DB283CE
GPG fingerprint: 45E8 3D0E DE05 B714 D549 45BC CFB4 BBE9 4DB2 83CE

Reply via email to