amavisd-new consists of the daemon, and optionally some helper programs,
which are only needed in certain setups.

Installing the daemon:

- copy file amavisd to wherever you want it to reside,
  such as /usr/local/sbin, and make sure its mode bits allow it
  to be executed. This is a Perl source, so it is readable by
  any text viewer. It is heavily commented, in case you would need
  more information;

- copy file amavisd.conf to whereever you want it to reside,
  such as /etc/, and make sure it is not writable by common users;

- create (or choose) a Unix group dedicated to run amavisd daemon
  and possibly some virus scanners. This should not be one of the
  user or system groups, and not shared with your mailer;

- create (or choose) a Unix user (UID) dedicated to run amavisd daemon
  and possibly some virus scanners. This should not be one of the
  user or system groups, and not shared with your mailer. Most definitely
  this should not be root (UID 0).

- edit file /etc/amavisd.conf and adjust variables
  $daemon_group and $daemon_user to match the chosen group and user name;

- create a directory (e.g. /var/amavis) to be used by amavisd-new
  as a working directory, and adjust variable $TEMPBASE in /etc/amavisd.conf
  to contain its name. Set the ownership and protection of the directory
  to be readable and writable by the chosen UID, and not writable
  by other unpriviliged users;

- create a directory (e.g. /var/virusmails) to be used by amavisd-new
  as a quarantine area, and adjust variable $QUARANTINEDIR in
  /etc/amavisd.conf to contain its name. Set the ownership and protection
  of the directory to be readable and writable by the chosen UID,
  and not writable by other unprivileged users;

- edit file /etc/amavisd.conf and check/adjust variables,
  especially in the 'Section I';

- install virus scanners (if you will be using them), and Perl module
  SpamAssassin (if you want it), and adjust variables in /etc/amavisd.conf,
  especially in the last section 'Section VII'; There are several other
  Perl modules needed by amavisd daemon - if you don't already have
  them installed you will get a list of missing modules when amavisd
  is started.

- start the program amavisd as root. It should start up and change
  its GID/UID to the value you provided. It is wise to start it up
  for the first time with a 'debug' option:

    # /usr/local/sbin/amavisd debug

- depending on the mailer you use, read the appropriate README.* file
  and follow instructions there. With some mailers (Postfix, Exim V4
  or a dual-MTA setup with any SMTP-capable mailers) you don't need
  anything else.

  With some other mailers (sendmail milter, classical sendmail)
  you need additional helper programs: amavisd-milter.c, or amavis.c
  respectively. They are available in the helper-progs subdirectory.
  The configure/make for building them is not up-to date, but they
  have not changed from the previous version, so if you are doing
  un upgrade, you already have them compiled and installed.
