FWD: need to adapt amavisd-release
Len Conrad
lconrad at Go2France.com
Wed Aug 8 19:33:02 CEST 2012
---------- Original Message ----------------------------------
From: "Len Conrad " <lconrad at Go2France.com>
Reply-To: <lconrad at Go2France.com>
Date: Wed, 8 Aug 2012 18:53:09 +0200
clamav + clamsmtpd quarantined 16K legit msgs due to bad MBL sig.
I've installed amavisd and adjusted .conf for the quarantine dir to /var/virus
filenames like:
/var/virus/virus.etTNvg
/var/virus/virus.dz8RGK
/var/virus/virus.c9q7Ln
/var/virus/virus.cCYU2K
/var/virus/virus.dJ4NoP
/var/virus/virus.eUdAmg
/var/virus/virus.byfcpS
/var/virus/virus.gRrMj5
/var/virus/virus.gIQ6yL
/var/virus/virus.bzu3pC
/var/virus/virus.fe76MB
/var/virus/virus.a1NVYi
/var/virus/virus.fXKSFO
/var/virus/virus.apHHHh
/var/virus/virus.deNjeK
release fails with:
amavisd-release virus.dyFYrx
Invalid quarantine ID: virus.dyFYrx
in amavisd-release, the error msg is in:
sub release_file($$$@) {
my($sock,$mail_file,$secret_id, at alt_recips) = @_;
my($fn_path,$fn_prefix,$mail_id,$fn_suffix,$part_tag); local($1,$2,$3,$4);
$part_tag = $1 if $mail_file =~ s/ \[ ( [^\]]* ) \] \z//xs;
if ($mail_file =~ m{^ ([^/].*/)? ([A-Z0-9][A-Z0-9._-]*[_-])?
([A-Z0-9][A-Z0-9_+-]{10,14}[A-Z0-9]) (\.gz)? \z}xsi) {
($fn_path,$fn_prefix,$mail_id,$fn_suffix) = ($1,$2,$3,$4);
} elsif ($mail_file =~ m{^ ([^/].*/)? () ([A-Za-z0-9$._=+-]+?) (\.gz)?\z}xs){
($fn_path,$fn_prefix,$mail_id,$fn_suffix) = ($1,$2,$3,$4); # old style
} else {
usage("Invalid quarantine ID: $mail_file");
anybody got any ideas how to adapt a-r to the clamsmtpd dir/files?
thanks
Len
More information about the amavis-users
mailing list