Am 18.02.2015 um 11:41 schrieb @lbutlr:
On 18 Feb 2015, at 02:06 , Reindl Harald <h.rei...@thelounge.net> wrote: Am 18.02.2015 um 05:50 schrieb @lbutlr:On 17 Feb 2015, at 15:46 , Reindl Harald <h.rei...@thelounge.net> wrote:because in a default milter-setup the one and only user is the user which SA and the miler service are running as, hence my script which needs maybe small adjustments for your environment (--no-sync and so on depend on the config, directories needs to exist and permissions for samples needs to be correct)Right. I’m going through your scripts now. They look interesting and with only a few weeks should drop in perfectly.no mysql and what not, just a default bayes-db, two traing-folders for ham and spam and the script for feed new eml-samples as well as the option for ac omplete rebuild based on the current samples, the corpus will stay forever on that machines and samples are named YYYY-mm-dd-number.emlSetting up the spam and ham corpus separately is on thing holding me up right nowhow else will you train??From existing mail in select users (who are known to mark their mail).
train a global bayes by user decisions? forget it without a reviewnot only once, the last time yesterday i called a user by phone and asked "seriously? you want to train the message you moved in my IMAP folder as spam just because someone wrote to your office address, searched who are the two persons by name and would like work togehter with you?"
the key part is tell the bayes "this is spam" and "this is ham”Yep. So far, attempts to train the spam from spamassmilter do not seem to be resulting in the DB files I’d expect to find in /var/spool/spamd which is the $HOME for the spamd user.
man you need to provide some informationsyou need to call "sa-learn" exactly as the user running spamd / milter with that home-directory and to be honest i would find it pervert using /var/spool for the userhome and bayes-database
sa-milt:x:189:188:SpamAssassin Milter:/var/lib/spamass-milter:/usr/bin/dash ls /var/lib/spamass-milter/.spamassassin/ insgesamt 35M -rw------- 1 sa-milt sa-milt 2,6M 2015-02-18 11:44 bayes_seen -rw------- 1 sa-milt sa-milt 40M 2015-02-18 11:44 bayes_toks -rw------- 1 sa-milt sa-milt 98 2015-02-17 11:37 user_prefssa-milt 477 0.0 2.5 289776 77440 ? SNs 04:16 0:21 /usr/bin/perl -T -w /usr/bin/spamd -c -H --max-children=25 --min-children=10 --min-spare=5 --max-spare=15 --port=10028 sa-milt 4945 0.0 0.1 584328 4080 ? SNsl Feb17 0:19 /usr/sbin/spamass-milter -p /run/spamass-milter/spamass-milter.sock -g sa-milt -r 8.0 -- -s 5242880 --port=10028
sa-milt 30625 1.6 3.7 332124 116528 ? SN 11:44 0:04 spamd child sa-milt 30626 0.4 2.5 293884 79328 ? SN 11:44 0:01 spamd child sa-milt 30627 0.0 2.3 289776 71036 ? SN 11:44 0:00 spamd child sa-milt 30628 0.0 2.3 289776 71108 ? SN 11:44 0:00 spamd child sa-milt 30629 0.0 2.3 289776 71036 ? SN 11:44 0:00 spamd child sa-milt 30630 0.0 2.3 289776 70972 ? SN 11:44 0:00 spamd child sa-milt 30631 0.0 2.3 289776 70972 ? SN 11:44 0:00 spamd child sa-milt 30632 0.0 2.3 289776 70972 ? SN 11:44 0:00 spamd child sa-milt 30633 0.0 2.3 289776 70976 ? SN 11:44 0:00 spamd child sa-milt 30634 0.0 2.3 289776 70976 ? SN 11:44 0:00 spamd child sa-milt 30635 0.0 2.3 289776 70976 ? SN 11:44 0:00 spamd child sa-milt 30636 0.0 2.3 289776 70976 ? SN 11:44 0:00 spamd child sa-milt 30637 0.0 2.3 289776 70976 ? SN 11:44 0:00 spamd child sa-milt 30638 0.0 2.3 289776 70980 ? SN 11:44 0:00 spamd child sa-milt 30639 0.0 2.3 289776 70980 ? SN 11:44 0:00 spamd child
signature.asc
Description: OpenPGP digital signature