Re: SpamAssassin autolearn problem
Vielen dank. I now made a configuration based on your own. I thought that bayes_path is a directory (obviously it should not be this way). I started spamd with -u and -d; I realized that -r is useful for sending SIGHUP (otherwise spamd will shut down). George POPA Andreas Vvgele wrote: 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. I've created a spamassassin user and group. The user's home directory is /var/spamassassin. Amongst other settings the following paths are set in /etc/mail/spamassassin/local.cf: bayes_path /var/spamassassin/bayes bayes_file_mode 0770 auto_whitelist_path /var/spamassassin/auto-whitelist auto_whitelist_file_mode 0770 spamd is started with the following command line arguments: /usr/local/bin/spamd -d -u spamassassin -H /var/spamassassin -r /var/spamassassin/spamd.pid How do you start spamd?
Re: SpamAssassin autolearn problem
Per-Olov Sjvholm wrote: 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} == XYES -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 Very interesting indeed. Anyway, I don't want to use vilter for the moment. The problem was the following: I thought bayes_path represents a DIRECTORY (not true, obviously). I was too tired to read well the man Mail:SpamAssassin::Conf. I understood wrong the indications there. Sorry.
SpamAssassin autolearn problem
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
Re: SpamAssassin autolearn problem
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. I've created a spamassassin user and group. The user's home directory is /var/spamassassin. Amongst other settings the following paths are set in /etc/mail/spamassassin/local.cf: bayes_path /var/spamassassin/bayes bayes_file_mode 0770 auto_whitelist_path /var/spamassassin/auto-whitelist auto_whitelist_file_mode 0770 spamd is started with the following command line arguments: /usr/local/bin/spamd -d -u spamassassin -H /var/spamassassin -r /var/spamassassin/spamd.pid How do you start spamd?
Re: SpamAssassin autolearn problem
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} == XYES -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