blob: bf8b7c8aab88d5356e4a7bd899240f982f8a5575 (
plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
If you plan to run amavisd-new, you don't need to run spamassassin separately (usually
via spamd). Amavisd-new calls spamassassin internally to scan messages. You can
also install clamav and enable virus scanning in the configuration file.
DEPENDENCIES:
FOR SPAMASSASSIN (please install in this order):
perl-Test-Pod
perl-Encode-Detect
perl-Image-Info
perl-TimeDate
perl-Net-libIDN
Net-SSLeay
perl-Socket6
perl-IO-Socket-SSL
perl-IO-Socket-INET6
perl-Crypt-OpenSSL-Bignum
perl-Crypt-OpenSSL-Random
perl-Crypt-OpenSSL-RSA
perl-Geography-Countries
perl-IP-Country
perl-digest-sha1
perl-digest-hmac
perl-html-tagset
perl-html-parser
re2c
libwww-perl
perl-NetAddr-IP
perl-Net-Server
perl-Net-Ident
perl-MailTools
perl-net-ip
perl-net-dns
perl-Net-DNS-Resolver-Programmable
perl-Mail-SPF
perl-Mail-DKIM
spamassassin
FOR AMAVISD-NEW (please install in this order):
perl-Convert-TNEF
perl-Convert-UUlib
perl-Convert-BinHex
perl-Archive-Zip
perl-IO-stringy
perl-MIME-tools
perl-Unix-Syslog
perl-BerkeleyDB
SETUP:
1. Create amavis user/group, before running the script.
groupadd -g 225 amavis
useradd -d -m /var/lib/amavis -s /bin/bash -u 225 -g 225 amavis
2. Make sure you have write perms for amavis group to amavis home (in this
case, /var/lib/amavis)
3. Create /var/log/amavisd-new.log file, change perms to allow write access
to amavisd user/group.
4. Add amavis user to clamav group and set "AllowSupplementaryGroups yes"
in fresclam.conf to allow amavis to scan messages.
5. To scan messages using spamassassin, you need to provide write access
to amavis user to /var/lib/spamassassin, which is the default. If the
directory doesn't exist, it will be created by spamassassin but the
permissions will correspond to the user invoking it.
6. Edit /etc/amavisd.conf. Verbose version of config file is included to
aid in configuration.
7. You can turn on debugging in log file with $sa_debug configuration
variable in /etc/amavisd.conf.
|