Got bitten by the same issue: System updated bumped amavisd from 2.12.1 to 2.12.2. After the update the service was not working and calling it manually produced the exact same error as you got.
I'm sure the permission of /etc/amavisd.conf was not changed during the update, I still have the btrfs snapshot showing the old file permission:
Code: Select all
-rw-r-----. 1 root root system_u:object_r:amavis_etc_t 37118 Jan 14 2017 amavisd.conf
While debugging it I was able to link the problem to the first usage of $! in the line 2238 from /usr/sbin/amavisd:
Code: Select all
elsif ($! != 0) { die "Error reading config file \"$config_file\": $!" }
Commenting out that line worked, also changing the elsif to "0 != 0".
Now changing /etc/amavisd.conf to 644 also fixed the issue for me, It looks like for some strange. After all it looks like the usage of $! caused the error, there was no message that the config file was unreadable...
It's working now but if someone can explain the reason why I would be very interested...