> Hi all, > Spamassassin passes every incoming mail through > various tests (using spamd & spamc) to determine the mail as > spam according to the score(As per my knowledge) .
Technically spamc is just a small executable to send the file to spamd which is a daemon that keeps SpamAssassin in memory so that it isn't necessary to re-initiallize SA for every message. (And read all of the SA files etc as part of that initialization.) > But I want > to know how this scoring will happen for each test . Can we > control or making the scoring mechanism as per our own needs. Every test can be given a score -- and usually is. A later reference of that score will override any previous setting so you can add scores in your local.cf to override the default (increase, decrease, or even disable a test by setting it to zero.) > If possible How can we do that ? How will I understand the > scoring of spam mail determined by spamassassin. > Any help ... Use a line (usually in local.cf) of this form: score HM_GAPPY_SIG 3 'score' is a keyword for setting the score, 'HM_GAPPY_SIG' is one of my tests and '3' is the score I wish to set for this test. grep your default .cf files for grep "^score" /usr/share/spamassassin/*.cf Or better, include a patter for the test(s) that interest you (to cut down on the amount of output): grep "^score.*BAYES" /usr/share/spamassassin/*.cf You will generally find that the default scores are in 50_scores.cf so you may be specific and change the grep to only search that file (but I don't always remember this so may just search them all out of laziness.) -- Herb Martin