Re: Some Questions about Dspam Setup and Usage
Eric Broch <[email protected]> Fri, 13 Dec 2024 06:52:20 -0700
| Newsgroups | gmane.mail.spam.dspam.user |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--===============2305317101300792510==
Content-Type: multipart/alternative;
boundary="------------3w0s0nSiXgyULBoR9LTio0rT"
Content-Language: en-US
This is a multi-part message in MIME format.
--------------3w0s0nSiXgyULBoR9LTio0rT
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Echo,
I'm not sure what system you are using, but my latest RPMS use EL9, here
<http://repo.whitehorsetc.com/9/testing/x86_64/>.
If you install the latest RPM it is bundled with patches one of which
mitigated the 'invalid result' you are facing below:
# cat SOURCES/dspam-configureac-el9.patch
--- dspam/configure.ac 2024-02-27 23:28:25.005549848 -0700
+++ dspam.new/configure.ac 2024-02-27 23:28:39.015564302 -0700
@@ -556,6 +556,32 @@
AC_MSG_RESULT([$enable_long_usernames])
#
+# Virtual users
+#
+AC_ARG_ENABLE(virtual-users,
+ [AS_HELP_STRING(--enable-virtual-users, Cause DSPAM to support
virtual users.)])
+AC_MSG_CHECKING([whether to enable virtual users])
+case x"$enable-virtual-users" in
+ xyes) # debug output enabled explicity
+ ;;
+ xno) # debug output disabled explicity
+ ;;
+ x) # debug output disabled by default
+ enable-virtual-users=no
+ ;;
+ *) AC_MSG_ERROR([unexpected value $enable_virtual_users for
--{enable,disable}-virtual-users configure option])
+ ;;
+esac
+if test x"$enable-virtual-users" != xyes
+then
+ enable-virtual-users=no
+else
+ enable-virtual-users=yes # overkill, but convenient
+ AC_DEFINE(VIRTUAL_USERS, 1, [Defined if virtual users is enabled])
+fi
+AC_MSG_RESULT([$enable_virtual_users])
+
+#
# Large scale implementation
#
AC_ARG_ENABLE(large-scale,
I've never run the user management interface.
Eric
On 12/13/2024 3:19 AM, echo zhang wrote:
> 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
>
>
> _______________________________________________
> Dspam-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspam-user
--------------3w0s0nSiXgyULBoR9LTio0rT
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Echo,</p>
<p>I'm not sure what system you are using, but my latest RPMS use
EL9, <a href="http://repo.whitehorsetc.com/9/testing/x86_64/">here</a>.</p>
<p>If you install the latest RPM it is bundled with patches one of
which mitigated the 'invalid result' you are facing below:<br>
</p>
<p># cat SOURCES/dspam-configureac-el9.patch<br>
--- dspam/configure.ac 2024-02-27 23:28:25.005549848 -0700<br>
+++ dspam.new/configure.ac 2024-02-27 23:28:39.015564302
-0700<br>
@@ -556,6 +556,32 @@<br>
AC_MSG_RESULT([$enable_long_usernames])<br>
<br>
#<br>
+# Virtual users<br>
+#<br>
+AC_ARG_ENABLE(virtual-users,<br>
+ [AS_HELP_STRING(--enable-virtual-users, Cause DSPAM to
support virtual users.)])<br>
+AC_MSG_CHECKING([whether to enable virtual users])<br>
+case x"$enable-virtual-users" in<br>
+ xyes) # debug output enabled explicity<br>
+ ;;<br>
+ xno) # debug output disabled explicity<br>
+ ;;<br>
+ x) # debug output disabled by default<br>
+ enable-virtual-users=no<br>
+ ;;<br>
+ *) AC_MSG_ERROR([unexpected value $enable_virtual_users
for --{enable,disable}-virtual-users configure option])<br>
+ ;;<br>
+esac<br>
+if test x"$enable-virtual-users" != xyes<br>
+then<br>
+ enable-virtual-users=no<br>
+else<br>
+ enable-virtual-users=yes # overkill, but convenient<br>
+ AC_DEFINE(VIRTUAL_USERS, 1, [Defined if virtual users is
enabled])<br>
+fi<br>
+AC_MSG_RESULT([$enable_virtual_users])<br>
+<br>
+#<br>
# Large scale implementation<br>
#<br>
AC_ARG_ENABLE(large-scale,<br>
<br>
</p>
<p>I've never run the user management interface.<br>
</p>
<p>Eric<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 12/13/2024 3:19 AM, echo zhang
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAP+fm75oqfx4aV_u3-9ohN37v3VT7LNC513rhb7VNKcn+KaPQA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="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 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:<br>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">dspam
--mode=teft --source=corpus --class=spam --feature=noise
--user root < "test.eml"<br>
dspam --classify --user root --stdout < "test.eml" </blockquote>
</div>
<div>However, the output remains:<br>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">X-DSPAM-Result:
root; result="Innocent"; class="Innocent";
probability=0.0023; confidence=1.00; signature=N/A</blockquote>
</div>
<div>Meanwhile, I saw the following error message in the log:<br>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,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 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?</div>
<br>
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?
<div><br>
</div>
<div>Thanks.</div>
<div><br>
</div>
<div>Echo Zhang</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre wrap="" class="moz-quote-pre">_______________________________________________
Dspam-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/dspam-user">https://lists.sourceforge.net/lists/listinfo/dspam-user</a>
</pre>
</blockquote>
</body>
</html>
--------------3w0s0nSiXgyULBoR9LTio0rT--
--===============2305317101300792510==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============2305317101300792510==
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
--===============2305317101300792510==--