]> git.donarmstrong.com Git - deb_pkgs/spamass-milter.git/blob - README
7d719a788aa209d2c7f43b5d136ab23ce541a622
[deb_pkgs/spamass-milter.git] / README
1 $Id: README,v 1.6 2005/08/15 15:10:47 dnelson Exp $
2
3 Spamass-Milter, a small
4  - SpamAssassin Sendmail Mail Filter (Milter) Plugin 
5 -----------------------------------------------------
6
7 For information about Sendmail or SpamAssassin, please see 
8         http://www.sendmail.org
9         http://www.spamassassin.org
10
11
12 Installation instructions:
13 --------------------------
14
15 You need to have sendmail + sendmail's libmilter (available since
16 version 8.11, afaik, 8.12.+ recommended) installed. Depending on your
17 distribution you may need to recompile sendmail for this. 
18
19 Under Debian, "apt-get install libmilter-dev" should do the trick.
20
21 For more information, please refer to http://www.sendmail.org.
22
23 You will need to have SpamAssassin spamc & spamd installed &
24 configured.
25
26 BEFORE INSTALLING & TRYING TO USE THIS PROGRAM, PLEASE MAKE SURE THAT
27 SPAMC/SPAMD DOES EXACTLY WHAT YOU WANT; OTHERWISE YOU MIGHT RISK
28 LOSING MAIL.
29
30 "./configure ; make ; make install" should do the trick.  If it
31 doesn't, you may be missing something or the configuration may not be
32 working for you.  If you are not using a release tarball, you will need
33 to have automake and autoconf installed, and run "./autogen.sh" to
34 generate the configure script first.
35
36 Configuration:
37 --------------
38
39 In contrib, you'll find a startup-script that should work almost out
40 of the box under Debian. Just modify the execution path to where you
41 put the spamass-milter binary and set the path of the socket to what
42 you want to use. YOU WILL MOST LIKELY HAVE TO EDIT THE VARIABLES ON
43 TOP OF THIS FILE.
44
45 Then start the daemon via /etc/init.d/spamass-milter start and make
46 sure it didn't crash/terminate immediately. If it does, there should
47 usually be syslog output. 
48
49 If you want to make this happen automatically, you can use the
50 update-rc.d command for this under Debian.
51
52
53 Now you need to make sendmail use the plugin. I always recommend
54 configuring sendmail through m4 & the sendmail.mc files. In this case
55 adding the lines
56
57 INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/sendmail/spamass.sock, F=, T=C:15m;S:4m;R:4m;E:10m')dnl
58 define(`confMILTER_MACROS_CONNECT',`t, b, j, _, {daemon_name}, {if_name}, {if_addr}')dnl
59 define(`confMILTER_MACROS_HELO',`s, {tls_version}, {cipher}, {cipher_bits}, {cert_subject}, {cert_issuer}')dnl
60
61 should do the trick. Of course you need to modify the path of the
62 socket if you put another one into the startup script. The timeouts
63 have been increased somewhat because SpamAssassin may chew on it for a
64 little while on a slow machine.
65
66 Now recreate sendmail.cf, restart sendmail and experiment around a bit
67 with the setup to make sure it is working.
68
69
70 Q: Does this work for UUCP?
71
72 Yes, it does. At least for me. :-)
73
74
75 If you want, you might configure procmail to filter out the spam into
76 a separate mailbox or do other fancy things. The SpamAssassin homepage
77 will tell you more about it.
78
79 That should be it. Have fun watching the spam drip off your box. :)