On 31.05.16 14:58, Peter Carlson wrote:
(sorry if this is a repost, I dont see my messages coming through...the
irony of spamassassin.apache.org trapping my request for help as spam. I
have snipped the logfile entries which I think were causing it to be
tagged as spam)
please, avoid HTML mail to mailing lists, whenever possible.
All of my messages are being tagged with BAYES_00=-1.9
I have cleared the bayes db (sa-learn --clear), then I manually trained.
Here are the results:
sa-learn --dump magic
0.000 0 3 0 non-token data: bayes db version
0.000 0 642 0 non-token data: nspam
0.000 0 9415 0 non-token data: nham
there's cleanly some spam learned.
May 30 08:34:13 www amavis[16252]: (16252-01) Passed SPAMMY
{RelayedTaggedInbound}, <snip> Tests:
[BAYES_00=-1.9,HTML_MESSAGE=0.001,HTML_TAG_BALANCE_BODY=1.157,MIME_HTML_MOSTLY=0.428,MPART_ALT_DIFF=0.79,RAZOR2_CHECK=0.922,SPF_FAIL=0.001,SPF_HELO_FAIL=0.001,THIS_AD=1.675,T_HTML_TAG_BALANCE_CENTER=0.01,URIBL_BLOCKED=0.001,URIBL_DBL_SPAM=2.5],
autolearn=no autolearn_force=no, autolearnscore=8.272, 4054 ms
and some even caught, even with BAYES_00
The spam is learned by a simple bash script. The users (my family) move
spam into a SPAM folder. This script then runs every night ( I have
removed some of the logging lines and comments for brevity):
#!/bin/bash
# delete messages this old
cleanafter=14
# grab all the user folders
users=`find /var/spool/cyrus/mail -name SPAM -print`
for u in ${users[@]}; do
inbox=${u%/*}
folder=${u##*/}
user=${inbox##*/}
sa-learn --nosync --spam --progress --dir $inbox/SPAM
sa-learn --nosync --ham --progress --dir $inbox
1. you use amavis, so you must run sa-learn under the amavis user.
2. if the same mail appears in $inbox and $inbox/SPAM both, it will be
learned as ham. retraining the same mail will overwrite the
simply exchanging those lines (first train ham, then spam) _could_ help you
much.
and of course read what the others advised you....
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
I'm not interested in your website anymore.
If you need cookies, bake them yourself.