It will guide you through updating to the latest stable version of amavisd-new without breaking Server Admin functionality.
Although the Apple included version of amavisd-new is suitable for most users, there are situations where one might need to update.
The purpose of this document is to provide instructions on how to update the version of amavisd-new included with Mac OS X 10.5.3 Server or greater.
A common reason is to take advantage of the latest filtering techniques and security fixes.
This document is written for Mac OS X 10.5.3 or greater.
So it is more than useful to install Clamav from the Debian volatile project repository.
perl -MCPAN -e shell install Archive:: Tar install Archive:: Zip install Compress:: Zlib install Convert:: UUlib install MIME:: Base64 install Mail:: Internet install Net:: Server install Net:: SMTP install Digest:: MD5 install IO:: Stringy install Time:: Hi Res install Unix:: Syslog install Berkeley DB install MIME:: Tools install Convert:: TNEF b) Create user account and home directory of amavis #mkdir /var/amavis #groupadd amavis #useradd amavis -g amavis -d /var/amavis -s /bin/bash #chmod 750 /var/amavis #mkdir /var/amavis/tmp #mkdir /var/amavis/db #chown -R amavis:amavis /var/amavis c) Install amavisd-new #cd /usr/local/src #tar -zxf amavisd-new-2.4.0gz #cd amavisd-new-2.4.0 #cp amavisd /usr/local/sbin #chown root /usr/local/sbin/amavisd #chmod 755 /usr/local/sbin/amavisd #cp /etc #chown root /etc/#chmod 644 /etc/#mkdir /var/virusmails #chmod 750 /var/virusmails/ #chown amavis /var/virusmails/ d) Edit /etc/file and adjust variables as below (If you haven't used the above scheme for directory structure, you will also need to change more variables than below) $mydomain = 'test.com'; $daemon_user = 'amavis'; $daemon_group = 'amavis'; $final_virus_destiny = D_REJECT; $final_banned_destiny = D_PASS; $final_spam_destiny = D_PASS; $final_bad_header_destiny = D_PASS; $warnvirussender = 1; $virus_admin = "genco\@$mydomain"; $mailfrom_notify_admin = "genco\@$mydomain"; $mailfrom_notify_recip = "genco\@$mydomain"; $mailfrom_notify_spamadmin = "NOSPAMMER\@$mydomain"; $sa_tag2_level_deflt = 5; e) You can set many virus scanners in file but we are going to use only clamav.
amavisd-new will log whenever it finds a spam or virus email.