Some Questions about Dspam Setup and Usage
echo zhang <[email protected]> Fri, 13 Dec 2024 18:19:09 +0800
| Newsgroups | gmane.mail.spam.dspam.user |
|---|---|
| Message-ID | <CAP+fm75oqfx4aV_u3-9ohN37v3VT7LNC513rhb7VNKcn+KaPQA@mail.gmail.com> |
--===============4174186926943694621== Content-Type: multipart/alternative; boundary="0000000000000564250629242a51" --0000000000000564250629242a51 Content-Type: text/plain; charset="UTF-8" Dear Dspam Community: I am trying to use the Dspam (version: 3.10.2) as a spam detection engine, but I am having some trouble. Specifically, I want to detect specific email samples by running Dspam directly on its own, rather than through integration with a mail server such as Postfix. I specified Mysql as the storage driver, and used the following commands for training and classification respectively: > dspam --mode=teft --source=corpus --class=spam --feature=noise --user root > < "test.eml" > dspam --classify --user root --stdout < "test.eml" However, the output remains: > X-DSPAM-Result: root; result="Innocent"; class="Innocent"; > probability=0.0023; confidence=1.00; signature=N/A Meanwhile, I saw the following error message in the log: > Dec 13 15:55:21 8e5bc7350f88 dspam[17599]: bailing on error -2 > Dec 13 15:55:21 8e5bc7350f88 dspam[17599]: received invalid result > (!DSR_ISSPAM && !DSR_ISINNOCENT): -2 I wonder why this happened and how to fix it. I would be grateful if someone could offer some help! By the way, I actually don't really understand Dspam's user management mechanism. From my understanding, it seems that the classification model for different users is differentiated to meet differentiated mail processing needs. So how can I add users to Dspam while running it standalone? Where can I view a list of all users currently maintained by Dspam? Finally, is there something like a default classifier? If not, does this mean that the Dspam that was just installed actually has no spam detection capability, since it has not been trained on user data? Thanks. Echo Zhang --0000000000000564250629242a51 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Dear Dspam Community:<div><br>I am trying to use the Dspam= (version: 3.10.2) as a spam detection engine, but I am having some trouble= .</div><div><br></div><div>Specifically, I want to detect specific email sa= mples by running Dspam directly on its own, rather than through integration= with a mail server such as Postfix. I specified Mysql as the storage drive= r, and used the following commands for training and classification respecti= vely:<br><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8e= x;border-left:1px solid rgb(204,204,204);padding-left:1ex">dspam --mode=3Dt= eft --source=3Dcorpus --class=3Dspam --feature=3Dnoise --user root < &qu= ot;test.eml"<br>dspam --classify =C2=A0--user root --stdout < "= ;test.eml"=C2=A0</blockquote></div><div>However, the output remains:<b= r><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;borde= r-left:1px solid rgb(204,204,204);padding-left:1ex">X-DSPAM-Result: root; r= esult=3D"Innocent"; class=3D"Innocent"; probability=3D0= .0023; confidence=3D1.00; signature=3DN/A</blockquote></div><div>Meanwhile,= I saw the following error message in the log:<br><blockquote class=3D"gmai= l_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,20= 4,204);padding-left:1ex">Dec 13 15:55:21 8e5bc7350f88 dspam[17599]: bailing= on error -2<br>Dec 13 15:55:21 8e5bc7350f88 dspam[17599]: received invalid= result (!DSR_ISSPAM && !DSR_ISINNOCENT): -2</blockquote><div><br><= /div><div>I wonder why this happened and how to fix it. I would be grateful= if someone could offer some help!</div><div><br></div>By the way, I actual= ly don't really understand Dspam's user management mechanism. From = my understanding, it seems that the classification model for different user= s is differentiated to meet differentiated mail processing needs. So how ca= n I add users to Dspam while running it standalone? Where can I view a list= of all users currently maintained by Dspam?</div><br>Finally, is there som= ething like a default classifier? If not, does this mean that the Dspam tha= t was just installed actually has no spam detection capability, since it ha= s not been trained on user data?<div><br></div><div>Thanks.</div><div><br><= /div><div>Echo Zhang</div></div> --0000000000000564250629242a51-- --===============4174186926943694621== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============4174186926943694621== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Dspam-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspam-user --===============4174186926943694621==--