]> git.pld-linux.org Git - packages/amavis.git/blame - amavis-README.courier
- drop obsolete and outdated manual inclusion of rpm macros
[packages/amavis.git] / amavis-README.courier
CommitLineData
1d3a9757
AA
1How To Use AMaViS With courier
2******************************
3
4 By Lars Hecking <lhecking@users.sourceforge.net>
5 Modified for Courier by Jim Gifford <giffordj@linkline.com>
6
7 This setup requires Courier and Maildrop.
8
9 You'll also need external unpackers, like arc etc.
10
11 And yes, you need to have a virusscanner installed; and it must be
12 in the $PATH environment variable.
13
14 Also, a problem one might run into is some weird configure output
15 about undefined macros. To fix this, one needs to install:
16
17 http://cryp.to/autoconf-archive/Installed_Packages/acx_pthread.m4
18 into the directory specified by 'aclocal --print-ac-dir' and then rerun
19 aclocal && automake && autoconf !
20
21 In this configuration, amavis runs under a non-privileged user id
22 (by default: amavis). Make sure it exists before proceeding. If a different
23 user is chosen, use the "--with-amavisuser=USER" configure option for amavis.
24
25 So, if you use defaults
26
27 ./configure --enable-courier
28
29 it should work.
30
31 Configuring courier itself is very simple:
32
33 * a change to /etc/courier/courierd or /usr/lib/etc/courier/courierd:
34
35 From
36 DEFAULTDELIVERY="| /usr/bin/maildrop"
37 or
38 DEFAULTDELIVERY=./Mail/Maildir
39
40 To
f87ab4cf 41 DEFAULTDELIVERY="| /usr/sbin/amavis.courier | /usr/bin/maildrop"
1d3a9757
AA
42
43 This is the recommended setup for Amavis. There is an alternative
44 method which is listed below.
45
46 * a change to /etc/courier/courierd or /usr/lib/etc/courier/courierd:
47
48 From
49 DEFAULTDELIVERY=./Mail/Maildir
50
51 To
52 DEFAULTDELIVERY="| /usr/bin/maildrop"
53
54 * add to /etc/courier/maildroprc or /usr/lib/etc/courier/maildroprc:
55
56 # Virus Scan
57 #
58 import SENDER
59 import RECIPIENT
60
f87ab4cf 61 xfilter "/usr/sbin/amavis.courier $SENDER $RECIPIENT"
1d3a9757
AA
62
63 Additional Maildroprc rules
64
65 If you would like to put your infected emails into their own Maildir
66 you can add the following line to your maildroprc file. Make sure
67 you create the Maildir or this rule will not work properly
68
69 if (/^Subject:.*VIRUS IN*/)
70 {
71 exception {
72 to "$DEFAULT/.Virus/"
73 }
74 }
This page took 0.112211 seconds and 4 git commands to generate.