Use your system's amavis package if possible.
Software dependencies are tracked via
Dist::Zilla. Some of them involve
non-perl development libraries and GCC as a build dependency if obtained from
CPAN:
libdblibidn2libssllibzmq3On Debian 13 for example, one can install them via
apt-get install build-essential libdist-zilla-perl libdb-dev libidn2-dev libssl-dev libzmq3-dev
Choose a version, fetch the tarball and unpack it:
VERSION=master
curl -O https://gitlab.com/amavis/amavis/-/archive/$VERSION/amavis-$VERSION.tar.gz
gzip -d -c amavis-$VERSION.tar.gz | tar xvf -
cd amavis-$VERSION
dzil install.root, possibly based on
conf/amavisd.conf.vscan.$MYHOME, $db_home and $TEMPBASE.sa-update.amavisd -c /path/to/amavis.conf debugA purely unprivileged mode of operation and bootstrapping is not supported. In
the end, the config file needs to be owned by root.
Moreover, perl's taint mode prohibits externally defined non-standard library
paths, so running amavis from a local perl environment via local::lib will
not work without code modifications.