2010-04-24 23:07:02 +02:00
|
|
|
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.
|
|
|
|
|
2010-04-09 19:19:58 +02:00
|
|
|
DEPENDENCIES:
|
|
|
|
|
2010-04-24 23:07:02 +02:00
|
|
|
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
|
2012-08-23 21:52:30 +02:00
|
|
|
perl-encode-locale
|
|
|
|
perl-uri-escape
|
|
|
|
perl-http-date
|
|
|
|
perl-lwp-mediatypes
|
|
|
|
perl-http-message
|
|
|
|
perl-http-cookies
|
|
|
|
perl-http-daemon
|
|
|
|
perl-file-listing
|
|
|
|
perl-http-negotiate
|
|
|
|
perl-net-http
|
|
|
|
perl-www-robotrules
|
2010-04-24 23:07:02 +02:00
|
|
|
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
|
2012-06-03 01:50:58 +02:00
|
|
|
perl-IO-Multiplex
|
|
|
|
|
|
|
|
SLACKBUILD CHANGELOG:
|
|
|
|
Script and package changes introduced in version >= 2.6.6
|
|
|
|
1. logrotate file is renamed amavisd-new.
|
|
|
|
2. rc script is renamed to rc.amavisd-new
|
|
|
|
3. logfile in the logrotate script is renamed to amavisd-new.log. Make sure
|
|
|
|
you change the logfile in the amavisd.conf file and rename the log file.
|
|
|
|
Look for, $LOGFILE directive in the configuration file.
|
|
|
|
4. Remember to update your rc.local and rc.local_shutdown scripts accordingly.
|
|
|
|
5. With version 2.7, a new process amavisd-signer is spawned to take care
|
|
|
|
of dkim signing. Please read RELEASE_NOTES in the documentation.
|
|
|
|
|
2010-04-09 19:19:58 +02:00
|
|
|
|
|
|
|
SETUP:
|
|
|
|
1. Create amavis user/group, before running the script.
|
2010-04-24 23:07:02 +02:00
|
|
|
groupadd -g 225 amavis
|
|
|
|
useradd -d -m /var/lib/amavis -s /bin/bash -u 225 -g 225 amavis
|
2010-04-09 19:19:58 +02:00
|
|
|
|
|
|
|
2. Make sure you have write perms for amavis group to amavis home (in this
|
|
|
|
case, /var/lib/amavis)
|
|
|
|
|
2012-06-03 01:50:58 +02:00
|
|
|
3. Create /var/log/amavisd.log file, change perms to allow write access
|
2010-04-09 19:19:58 +02:00
|
|
|
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.
|
2010-04-24 23:07:02 +02:00
|
|
|
|
|
|
|
7. You can turn on debugging in log file with $sa_debug configuration
|
|
|
|
variable in /etc/amavisd.conf.
|
2012-06-03 01:50:58 +02:00
|
|
|
|