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:
libdb
libidn2
libssl
libzmq3
On Debian 11 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 onconf/amavisd.conf
.vscan
.$MYHOME
, $db_home
and $TEMPBASE
.sa-update
.amavisd -c /path/to/amavis.conf debug
A 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.