1 How To Use AMaViS With courier
2 ******************************
4 By Lars Hecking <lhecking@users.sourceforge.net>
5 Modified for Courier by Jim Gifford <giffordj@linkline.com>
7 This setup requires Courier and Maildrop.
9 You'll also need external unpackers, like arc etc.
11 And yes, you need to have a virusscanner installed; and it must be
12 in the $PATH environment variable.
14 Also, a problem one might run into is some weird configure output
15 about undefined macros. To fix this, one needs to install:
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 !
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.
25 So, if you use defaults
27 ./configure --enable-courier
31 Configuring courier itself is very simple:
33 * a change to /etc/courier/courierd or /usr/lib/etc/courier/courierd:
36 DEFAULTDELIVERY="| /usr/bin/maildrop"
38 DEFAULTDELIVERY=./Mail/Maildir
41 DEFAULTDELIVERY="| /usr/sbin/amavis | /usr/bin/maildrop"
43 This is the recommended setup for Amavis. There is an alternative
44 method which is listed below.
46 * a change to /etc/courier/courierd or /usr/lib/etc/courier/courierd:
49 DEFAULTDELIVERY=./Mail/Maildir
52 DEFAULTDELIVERY="| /usr/bin/maildrop"
54 * add to /etc/courier/maildroprc or /usr/lib/etc/courier/maildroprc:
61 xfilter "/usr/sbin/amavis $SENDER $RECIPIENT"
63 Additional Maildroprc rules
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
69 if (/^Subject:.*VIRUS IN*/)