cp amavisd ${INSTALL_ROOT}/usr/sbin                                      &&
sedit "s/enable_db = 1/enable_db = 0/" amavisd.conf                      &&
sedit "s/enable_global_cache = 1/enable_global_cache = 0/" amavisd.conf  &&
sedit "s/daemon_user  = 'vscan'/daemon_user  = 'amavis'/" amavisd.conf   &&
sedit "s/daemon_group = 'vscan'/daemon_group  = 'amavis'/" amavisd.conf &&

if ! [ -f /etc/amavisd.conf ]; then
   cp amavisd.conf ${INSTALL_ROOT}/etc/
else
   cp amavisd.conf ${INSTALL_ROOT}/etc/amavisd.conf.new
fi
