Several changes need to be made to the file /etc/amavisd.conf
. This file will be parsed as Perl source and syntax is important. Each line should end in a semicolon, and the casing is important. The following variable declaration lines should be changed:
$MYHOME = '/home/amavis'; $mydomain = 'domain.com'; $daemon_user = 'amavis'; $daemon_group = 'amavis'; $max_servers = 5; # number of pre-forked children (default 2) $max_requests = 10; # retire a child after that many accepts (default 10) $child_timeout=60;# abort child if it does not complete each task in n sec
Ensure that the correct domain is specified for $mydomain
. The number 5
specified for $max_servers
is the number of daemons that will be run.
In /etc/amavisd.conf
, one line needs to be uncommented as virus scanning is not going to be used. If this step is to be omitted, then Amavisd-new will not start. This line begins with # @bypass_virus_checks_acl
. The initial #
and space characters need to be removed.
@bypass_virus_checks_acl...