amavis-release not present?

Gelpi Andrea liste at gelpi.it
Wed Dec 15 11:30:04 CET 2010


Gelpi Andrea ha scritto:
> Johannes Graumann ha scritto:
>> Reread that page ... it says that amavis-release is in the amavis source but 
>> not extracted by openpkg ... and also list how to extract it ...
>>
>> Joh
> 
> I added amavisd-release using wiki page instructions, but it is not possibile to use it with 
> banned mails.
> 
> # /kolab/sbin/amavisd-release /kolab/var/amavisd/virusmails/banned-SIrBFgLLo4B9
> Invalid quarantine ID: /kolab/var/amavisd/virusmails/banned-SIrBFgLLo4B9
> 
> amavisd-release version 1.5
> Usage:  $ amavisd-release mail_file [secret_id [alt_recip1 alt_recip2 ...]]
>    or to read request lines from stdin:  $ amavisd-release -
> 
>  From amavisd-release
> 
>    if ($mail_file =~ m{^ ([^/].*/)? ([A-Z0-9][A-Z0-9._-]*[_-])?
>                          ([A-Z0-9][A-Z0-9_+-]{10}[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");
>    }

The lines above never match a file path.

I changed it with:

if ($mail_file =~ m{^(/[A-z0-9/]+/)? ([A-Z0-9]+-)? ([A-Z0-9-]+) (\.gz)?\z}xsi) {
     ($fn_path,$fn_prefix,$mail_id,$fn_suffix) = ($1,$2,$3,$4);
   } elsif ($mail_file =~ m{^(/[A-z0-9/]+/)? ([A-Z0-9]+-)? ([A-Z0-9-]+)?\z}xsi) {
     ($fn_path,$fn_prefix,$mail_id,$fn_suffix) = ($1,$2,$3,$4);
   } elsif ($mail_file =~ m{^ ([^/].*/)? ([A-Z0-9][A-Z0-9._-]*[_-])?
                         ([A-Z0-9][A-Z0-9_+-]{10}[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");
   }

Now amavisd-release go on but amavid reply with this error:

450 4.5.0 Failure: Unsafe filename '/kolab/var/amavisd/virusmails/banned-XBHjlVe2-dJ2' at (eval 
95) line 296, <GEN28> line 5.

Ideas?

> 
> 
> Only spam messages are gzipped.
> 
> How can I solve?
> 
> Thanks.
> 
> 
>> Gavin McCullagh wrote:
>>
>>> Hi,
>>>
>>> According to the wiki there are two ways to release a mail from amavis'
>>> quarantine.
>>>
>>> http://wiki.kolab.org/Amavisd-new#Releasing_mails_from_quarantine
>>>
>>> The cyrdeliver method works, but amavis-release doesn't seem to be present
>>> in kolab v2.2.4.  Is that right?
>>>
>>> Gavin
>>
>> _______________________________________________
>> Kolab-users mailing list
>> Kolab-users at kolab.org
>> https://kolab.org/mailman/listinfo/kolab-users
> 
> 


-- 
ing. Andrea Gelpi
***************************************************
La Terra non la abbiamo ereditata dai nostri avi,
ma la abbiamo presa in prestito dai nostri bambini.
***************************************************
We do not inherit the Earth from our parents,
but borrow it from our children.
***************************************************




More information about the users mailing list