File: README.SPAMASSASSIN

package info (click to toggle)
mimedefang 3.6-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,840 kB
  • sloc: ansic: 9,495; perl: 8,286; sh: 2,451; tcl: 693; makefile: 75; sql: 30; php: 20
file content (34 lines) | stat: -rw-r--r-- 1,433 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
MIMEDefang includes support for the SpamAssassin SPAM detector.  To
use SpamAssassin with MIMEDefang:

1) Download the latest SpamAssassin tools from http://spamassassin.apache.org/
2) Install the SpamAssassin tools.
3) Configure, make and install MIMEDefang.
4) Use the one of the functions spam_assassin_is_spam or
   spam_assassin_check in filter_end().  See the sample filter in
   the examples/ directory.

The sample filter adds a header if SpamAssassin thinks the message is
SPAM.  You can then use MIMEDefang to control message disposition on a
global basis, or procmail to control it on a per-user basis.
SpamAssassin is pretty slow, so it's better to run SpamAssassin from
MIMEDefang, and let per-user tools like procmail control message
disposition based on the presence of the X-Spam-Score header.

IMPORTANT IMPORTANT IMPORTANT IMPORTANT IMPORTANT IMPORTANT IMPORTANT IMPORTANT
-------------------------------------------------------------------------------

READ THIS SECTION NOW BEFORE POSTING QUESTIONS ON THE MIMEDEFANG MAILING
LIST:

MIMEDefang does *NOT* allow SpamAssassin to modify e-mail messages.
If you set up SpamAssassin to add headers or tag subjects, it
will not work.  Instead, you must have MIMEDefang do the modifications.
For example:

    if (spam_assassin_is_spam()) {
	# Change Subject: header
	action_change_header("Subject", "** SPAM ** $Subject");
    }

See the sample filter for more details.