Thue Feb 20 19:08:09 CET 2001
download | build and install (to /usr/bin) |
- freeze | ./configure; make; cp freeze /usr/bin |
- lha | cp lha /usr/bin |
- maildrop | ./configure; make; cp rfc2045/reformime /usr/bin (only reformime needed) |
- tnef | ./configure; make; cp src/tnef /usr/bin |
- unrar | make; cp unrar /usr/bin |
- xbinunix | gcc -o xbin xbinunix.c; cp xbin /usr/bin |
- unarj | make; cp unarj /usr/bin |
(arc, zoo, gunzip, unzip, compress, uudecode should be installed by default on Linux).
on SuSE Linux 6.0. with sendmail 8.9.3.
Build and install it with ./configure --enable-relay=yes; make; make
install.
Configure should automatically find the tools and scanners you installed
before. If you want the recipient of an infected mail to be noticed of
the stopped delivery, add --notify-receiver to the configure options.
e.g.: cp /etc/sendmail.cf /etc/sendmail.cf.noscan
/etc/sendmail.cf and name it /etc/sendmail.orig.cf.
Do not use a different name, as scanmail needs
to call sendmail using this config (or use --with-origconf when
configuring AmaVis).
cd /etc
patch -p0 < amavis.patch
If that patch succeeded, open your /etc/sendmail.cf in your favorite editor. Make sure that you find the following code and modify it to fit if necessary:
Mamavis,
P=/usr/sbin/scanmails, F=lsACDFMS5:/|@qShP, S=0, R=0
T=DNS/RFC822/X-Unix,
A=scanmails $h $u $f,
U=daemon:daemon
Mlocal,
P=/usr/bin/procmail, F=lsSDFMAw5:/|@qPfhn9, S=10/30, R=20/40,
T=DNS/RFC822/X-Unix,
A=procmail -Y -a $h -d $u,
U=root:root
and
O PrivacyOptions=novrfy,noexpn
Make sure /var/spool/mqueue is writable for user daemon. Check /etc/permissons entry on SuSE dists!!!
Create the AmaVis spool directory by mkdir /var/spool/mqamavis.
Check if /etc/aliases contains a virusalert: root entry. Type newaliases to build new aliases.db. If getting errors try /usr/sbin/sendmail -bi -C /etc/sendmail.orig.conf to generate new aliases and(!) change mod of /etc/newaliases.db to 644.
Make sure SuSE YaST will leave new sendmail.cf untouched.
Have fun!
Holger von Amlen, Marcus Schopen, University of Bielefeld, GERMANY