Problem starting amavisd with newer version

Juan Orti Alcaine j.orti.alcaine at gmail.com
Thu Jul 20 10:34:32 CEST 2017


2017-07-18 11:27 GMT+02:00 Richard Smits <R.Smits at tudelft.nl>:
> Hello,
>
> amavisd-new-2.10.1 (20141025) works.
>
> If I use the 2.11 version i get an error that my spamlovers file cannot be
> found ? Is this a chroot issue ?
>
> Jul 18 11:09:19 mailhost2n amavisd: Error in config file
> "/etc/amavisd/amavisd.conf": Can't open file /home/amavis/spam_lovers for
> reading: Permission denied at /usr/sbin/amavisd line 4388.
>
> amavisd.conf : @spam_lovers_maps = read_hash("$MYHOME/spam_lovers");
>
> If i change the location to /tmp/spam_lovers or something it still doesn't
> work. User/group rights are ok.
>
> If I downgrade it works.
>
> How is this possible ?
>
> Greetings, Richard.

Hi,

Check in the service unit file these directives. They disallow access
to /home and make read-only most of the paths.

PrivateTmp=true
PrivateDevices=true
ProtectSystem=full
ProtectHome=true

Edit the service file to suit your needs with:

# systemctl edit --full amavisd.service


More information about the amavis-users mailing list