openbsd-ports/mail/p5-Mail-SpamAssassin/files/OpenBSD-SpamAssassin-mini-howto.html
sturm 49c17544a7 update to SpamAssassin 3.0.2
from Ben Lovett <ben at tilderoot.com>
2004-12-28 21:03:51 +00:00

51 lines
1.5 KiB
HTML

<HTML><HEAD><TITLE>SpamAssassin mini-howto</TITLE><META NAME="generator" CONTENT="txt2html v1.28"></HEAD><BODY>
<p><b>Usage:</b><br>
You can use spamassassin in many ways. But the lightest for the machine is by
making use of the spamc/spamd combination.
<p>First let's add a user and group for the spamd.
<pre><b># useradd -s /usr/bin/false -b /nonexistent -u 506 -g =uid _spamdaemon</b></pre>
<p>Add this line to <b><code>/etc/rc.local</b></code>:
<pre><b># @PREFIX@/bin/spamd -u _spamdaemon -d</b></pre>
<br> Use that same line to start spamd now.
<p>The final step: put this at the top of your <b><code>.procmailrc</b></code>.
If you do not want to use procmail please check the
<A HREF="http://spamassassin.org/doc.html">online docs</A>
<ul><pre>
:0fw
* < 256000
| spamc
:0e
{
EXITCODE=$?
}
:0:
* ^X-Spam-Status: Yes
caughtspam # This is the mailbox where all spam goes.</pre></ul>
<p><b>Customizing:</b><br>
The spam filtering is not perfect. But since the feedback is very extensive you
should be able to do what is necessary to get most spam filtered.
<p>If you want to add custom settings to spamassassin you can create the
file<code><b> @SYSCONFDIR@/mail/spamassassin/local.cf </b></code>. All possible options are
described in:<code><b> man Mail::SpamAssassin::Conf</b></code>
<p><b>Much more info:</b><br>
This is just a mini-HOWTO to get you up and running if you are in a hurry.
Please go to <A HREF="http://spamassassin.apache.org">spamassassin.apache.org</A> for further
information.
</BODY></HTML>