The new gentoo config file patch have an error in QUARANTINEDIR declaration.
This result in error in logs when email need to be quarantined:
--------- mail.err ----------
Apr 10 12:02:16 serveur amavis[32127]: (32127-16) (!!) TROUBLE in check_mail:
quar+notif FAILED: temporarily unable to quarantine: 451 4.5.0 Local
delivery(1) to $MYHOME/quarantine failed: Can't create file $MYHOME/quarantine:
No such file
or directory at (eval 55) line 147., id=32127-16 at /usr/sbin/amavisd line
8379.
-----------------------------
Part of the amavisd-new-2.4-amavisd.conf-gentoo.patch file with error:
------ part of patch --------
@@ -679,7 +704,7 @@
# or a directory (no trailing slash)
# (the default value is undef, meaning no quarantine)
#
-$QUARANTINEDIR = '/var/virusmails';
+$QUARANTINEDIR = '$MYHOME/quarantine';
#$quarantine_subdir_levels = 1; # add level of subdirs to disperse quarantine
-----------------------------
The declaration
$QUARANTINEDIR = '$MYHOME/quarantine';
must be changed to
$QUARANTINEDIR = "$MYHOME/quarantine";
A double quoted string must be used to allow $MYHOME evaluation.
No more error after this change.
David