Use this forum for discussions about SpamAssassin and anti-spam in general.
-
aurlia93
- New user

- Posts: 5
- Joined: 2018-10-19 08:14
Post
by aurlia93 » 2018-11-15 10:30
I set the schedule learn
echo start %DATE% %TIME% >> D:\hMailServer\Logs\learn-spam.log
"C:\Program Files\JAM Software\SpamAssassin for Windows\sa-learn.exe" --spam --folders="D:\hMailServer\Logs\spam-dir.txt" >> D:\hMailServer\Logs\learn-spam.log
echo end %DATE% %TIME% >> D:\hMailServer\Logs\learn-spam.log
and I got the
start 2018/11/15 16:00:05.03
Learned tokens from 1 message(s) (1901 message(s) examined)
end 2018/11/15 16:00:47.62
I was think it is worked .
But still received looks similar SPAM.
so I want to know how check it is really has learning
thanks
-
katip
- Senior user

- Posts: 785
- Joined: 2006-12-22 07:58
- Location: Istanbul
Post
by katip » 2018-11-15 12:08
have you already trained the other 1900 mails? if so why do you keep them there?
also try to add option --siteconfigpath
if you mean your learning was giving good results in the past but started to fail, you're probably right, i suffer the same. this has been discussed in SA mailing lists recently.
Katip
--
HMS 5.7.0 x64, MariaDB 10.4.10 x64, SA 3.4.2, ClamAV 0.101.2 + SaneS
-
aurlia93
- New user

- Posts: 5
- Joined: 2018-10-19 08:14
Post
by aurlia93 » 2018-11-16 03:42
katip wrote: ↑2018-11-15 12:08
have you already trained the other 1900 mails? if so why do you keep them there?
also try to add option --siteconfigpath
if you mean your learning was giving good results in the past but started to fail, you're probably right, i suffer the same. this has been discussed in SA mailing lists recently.
thanks for reply
after trained the old mail can remove right?
This is new mail server(SpamAssassin), and I don't know how much mail trained will be useful.
and I don't sure my setting is right.
I see someone use --sync option,
but I don't know it work in where? mean what...
thanks
-
katip
- Senior user

- Posts: 785
- Joined: 2006-12-22 07:58
- Location: Istanbul
Post
by katip » 2018-11-16 05:50
what is in D:\hMailServer\Logs\spam-dir.txt ?
you better start from scratch. delete c:\windows\system32\config\systemprofile\.spamassassin\bayes_*.*
you should train both spam and ham. i suggets you save about 200-300 (1000+ if you like) recent spam and ham mails in seperate folders and fire your learn.bat. delete them when finished.
don't care about --sync for now.
read docs carefully:
https://spamassassin.apache.org/full/3. ... learn.html
https://spamassassin.apache.org/full/3. ... _Conf.html
Katip
--
HMS 5.7.0 x64, MariaDB 10.4.10 x64, SA 3.4.2, ClamAV 0.101.2 + SaneS