Hello I use SpamAssassin 3.3.1 on Ubuntu 12.04 with Postfix 2.9.1-4 and AMaViS 2.6.5
All the time I move Spam when I get, to my Spam-folder, where I have some spam together since the last two years. All night I use the script "salearn-from-mails", to learn from the spam which is: #!/bin/bash -e SADIR=/var/lib/amavis/.spamassassin DBPATH=/var/lib/amavis/.spamassassin/bayes SPAMFOLDERS="\ /home/vmail/example.org/franc/.Spam/new \ /home/vmail/example.org/franc/.Spam/cur \ " HAMFOLDERS="\ /home/vmail/example.org/franc/cur \ " for spamfolder in $SPAMFOLDERS ; do \ echo Learning spam from $spamfolder ; \ nice sa-learn --spam --showdots --dbpath $DBPATH $spamfolder done for hamfolder in $HAMFOLDERS ; do \ echo Learning ham from $hamfolder ; \ nice sa-learn --ham --showdots --dbpath $DBPATH $hamfolder done chown -R amavis:amavis $SADIR When I look of the learnings I get some results: root@example:~# sa-learn --dbpath /var/lib/amavis/.spamassassin/bayes --dump magic 0.000 0 3 0 non-token data: bayes db version 0.000 0 801 0 non-token data: nspam 0.000 0 5585 0 non-token data: nham 0.000 0 127343 0 non-token data: ntokens 0.000 0 1332999307 0 non-token data: oldest atime 0.000 0 1338539336 0 non-token data: newest atime 0.000 0 1338535082 0 non-token data: last journal sync atime 0.000 0 1338524715 0 non-token data: last expiry atime 0.000 0 5529600 0 non-token data: last expire atime delta 0.000 0 1989 0 non-token data: last expire reduction count in my /etc/spamassassin/local.cf I have: use_bayes 1 bayes_auto_learn 1 bayes_auto_expire 0 bayes_path /var/lib/amavis/.spamassassin/bayes But when I send an email with the content and Subject of an old spam-mail this passes without much bayes-score: ... X-Virus-Scanned: Debian amavisd-new at ew6.org X-Spam-Flag: NO X-Spam-Score: 2.49 X-Spam-Level: ** X-Spam-Status: No, score=2.49 required=5 tests=[BAYES_50=0.8, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, URIBL_DBL_SPAM=1.7] autolearn=no ... What am I doing wrong? Thanks in advance, frank