<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div>Hello !</div><div><br></div><div>The sa-learn command does not work in amavisd-new.</div><div><br></div><div><br></div><div>/etc/spamassassin/local.cf</div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">-------------------------------------</span></div><div><span style="font-size: 12pt;">use_bayes 1</span></div><div>bayes_auto_learn 1</div><div>bayes_auto_expire 0</div><div>bayes_path /var/lib/amavis/.spamassassin</div><div>-------------------------------------</div><div><br></div><div>20-debian_defaults</div><div><span style="font-size: 12pt;">--------------------------------------</span></div><div><span style="font-size: 12pt;">$sa_spam_subject_tag = '***SPAM*** ';</span></div><div>$sa_tag_level_deflt = 2.0; # add spam info headers if at, or above that level</div><div>$sa_tag2_level_deflt = 6.31; # add 'spam detected' headers at that level</div><div>$sa_kill_level_deflt = 6.31; # triggers spam evasive actions</div><div>$sa_dsn_cutoff_level = 10; # spam level beyond which a DSN is not sent</div><div>--------------------------------------</div><div>...</div><div><br></div><div>command "<span style="font-size: 12pt;"> </span><span style="font-size: 12pt;">sa-learn --dbpath /var/lib/amavis/.spamassassin --ham *"</span></div><div><br></div><div>----------------------------------</div><div>root@intranet:/usr/local/postfix/mydomain.com/user@mydomain.com/cur# ls</div><div>1424025589.V801Ida6046M830986.intranet:2,ST 1424025594.M622625P2286V0000000000000801I0000000000DA605A_15.intranet,S=4819:2,S</div><div>root@intranet:/usr/local/postfix/mydomain/user@mydomain.com/cur# sa-learn --dbpath /var/lib/amavis/.spamassassin --ham *</div><div>Learned tokens from 1 message(s) (2 message(s) examined)</div><div>root@intranet:/usr/local/postfix/mydomain.com/user@mydomain.com/cur#</div><div>-----------------------------------</div><div><br></div><div>When sending again ... the email is SPAM again.</div><div><br></div><div>have tried sa-learn --sync</div><div><br></div><div>not working...</div><div><br></div><div><br></div> </div></body>
</html>