<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.ledhed.net/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.ledhed.net/index.php?action=history&amp;feed=atom&amp;title=DSpam_TESTING</id>
		<title>DSpam TESTING - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.ledhed.net/index.php?action=history&amp;feed=atom&amp;title=DSpam_TESTING"/>
		<link rel="alternate" type="text/html" href="https://wiki.ledhed.net/index.php?title=DSpam_TESTING&amp;action=history"/>
		<updated>2026-04-30T13:03:56Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.2</generator>

	<entry>
		<id>//wiki.ledhed.net/index.php?title=DSpam_TESTING&amp;diff=2085&amp;oldid=prev</id>
		<title>Ledhed: Created page with '== TESTING ==  If you've installed from an RPM, there's a good chance that the packager went to the trouble of testing already. If you're building from sources, however, you'll n...'</title>
		<link rel="alternate" type="text/html" href="https://wiki.ledhed.net/index.php?title=DSpam_TESTING&amp;diff=2085&amp;oldid=prev"/>
				<updated>2009-06-12T18:03:09Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;== TESTING ==  If you&amp;#039;ve installed from an RPM, there&amp;#039;s a good chance that the packager went to the trouble of testing already. If you&amp;#039;re building from sources, however, you&amp;#039;ll n...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== TESTING ==&lt;br /&gt;
&lt;br /&gt;
If you've installed from an RPM, there's a good chance that the packager went to the trouble of testing already. If you're building from sources, however, you'll need to find a way to ensure your configuration isn't broken.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Most software packages are supplied with a test suite to determine if the software is functioning properly.  Since DSPAM's correct function relies primarily on having the correct permissions and mail server configuration, a test script fails to provide the level of testing required for such a package.  The following exercise has been provided to test dspam's correct functioning on your system. This exercise does not test the Web UI, but only the core dspam agent.&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
Before running the test, you should have completed section 1.1's instructions for compiling and installing dspam as well as configured your mail server to support dspam.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 1. Create a new user account on your system ===&lt;br /&gt;
&lt;br /&gt;
It is important that this be a new account to prevent any unrelated email from being delivered during testing.  Be sure to configure a spam alias for the test account.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 2. Send a short email ===&lt;br /&gt;
&lt;br /&gt;
Send a short email (10 words or less) to the account, and pick it up using your favorite mail client.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 3. Run dspam_stats ===&lt;br /&gt;
 dspam_state [username]&lt;br /&gt;
You should see a value of 1 for &amp;quot;TI&amp;quot; or &amp;quot;Total Innocent&amp;quot; as shown below:&lt;br /&gt;
  dspam-test            0 TP       1 TN       0 FN       0 FP&lt;br /&gt;
&lt;br /&gt;
If you receive an error such as &amp;quot;unable to open /usr/local/var/dspam... for reading&amp;quot;, then the dspam agent is not configured correctly. The problem could exist in either your mail server configuration or one or more of the permissions on the directory or agent.  Check your configuration and permissions, and repeat this step until the correct results are experienced.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 4. Run dspam_dump ===&lt;br /&gt;
 dspam_dump [username]&lt;br /&gt;
This will get a complete list of tokens and their statistics.  Each token should have an I: (innocent) hit count of 1. The tokens will be represented as 64-bit values, for example:&lt;br /&gt;
&lt;br /&gt;
 3126549390380922317              S:    0  I:    1  LH: Mon Aug  4 11:40:12 2003&lt;br /&gt;
 13884833415944681423             S:    0  I:    1  LH: Mon Aug  4 11:40:12 2003&lt;br /&gt;
 14519792632472852948             S:    0  I:    1  LH: Mon Aug  4 11:40:12 2003&lt;br /&gt;
 8851970219880318167              S:    0  I:    1  LH: Mon Aug  4 11:40:12 2003&lt;br /&gt;
&lt;br /&gt;
To view statistics for a particular token, run:&lt;br /&gt;
 dspam_dump [username] [token]&lt;br /&gt;
Where token is the plain-text token value.  For example:&lt;br /&gt;
&lt;br /&gt;
 %dspam_dump bill FREE&lt;br /&gt;
 7717766825815048192  S: 00265  I: 00068  P: 0.7358&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 5. Forward the test message ===&lt;br /&gt;
Forward the test message to the spam alias you've created for the test account. Provide enough time for the message to have processed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 6. Run dspam_stats again ===&lt;br /&gt;
 dspam_state [username]&lt;br /&gt;
Now, the value for TN should be zero and the value for FN (false negatives) should be 1 as shown below:&lt;br /&gt;
 dspam-test            0 TP       0 TN       1 FN       0 FP&lt;br /&gt;
If this is not the case, check the group permissions of the dspam agent as well as the permissions your MTA uses when piping to aliases.&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
=== 7. Run dspam_dump [username] again ===&lt;br /&gt;
dspam_dump [username]&lt;br /&gt;
Make sure that ''EVERY'' token now has an I: of zero and a S: of 1:&lt;br /&gt;
 3126549390380922317              S:    1  I:    0  LH: Mon Aug  4 11:44:29 2003&lt;br /&gt;
 13884833415944681423             S:    1  I:    0  LH: Mon Aug  4 11:44:29 2003&lt;br /&gt;
 14519792632472852948             S:    1  I:    0  LH: Mon Aug  4 11:44:29 2003&lt;br /&gt;
 8851970219880318167              S:    1  I:    0  LH: Mon Aug  4 11:44:29 2003&lt;br /&gt;
If you have some tokens that do not have an S: of 1 or an I: of 0, the dspam signature was not found on the email, and this could be due to a lot of things.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:DSpam]]&lt;/div&gt;</summary>
		<author><name>Ledhed</name></author>	</entry>

	</feed>