You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by Apache Wiki <wi...@apache.org> on 2006/10/31 20:56:43 UTC
[Spamassassin Wiki] Update of "HowToDebug" by ChrisPrice
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Spamassassin Wiki" for change notification.
The following page has been changed by ChrisPrice:
http://wiki.apache.org/spamassassin/HowToDebug
------------------------------------------------------------------------------
* Run ''''spamassassin --lint'''', especially if you just added anything to your *.cf files or a user_prefs file. Often times you might have something slightly wrong and either a) SpamAssassin stops parsing the file or b) it's just plain wrong and causing the error.
* Run with ''''-D''''. The debug output from spamassassin, sa-learn, spamd is sometimes very verbose, but it also gives you a large amount of data that can be very helpful. Often times debug is the only place to see what exactly is causing your error. When running ''spamd'' with ''-D'' you will see some initial startup activity, you can ignore this, it is just scanning a test message to help do the initial load of the perl modules.
+
+ * Sometimes its necessary to output the SpamAssassin debug information to a file. This can be done by redirecting stdout to a file and then redirecting stderr to the same location. Run ''''spamassassin -D --lint > test.log 2>&1''''.
----
CategoryFaq