amavisd and centos8 compatibility

Henrik K hege at hege.li
Fri Apr 17 08:46:33 CEST 2020


On Wed, Apr 15, 2020 at 03:34:59PM +0200, Engels, Jan wrote:
> Hi Ralph,
> 
> yes, the tools on a particular platform are independent of amavis but
> unfortunately I am currently also experiencing Problems with unrar and Amavis and in
> this case it seems that the problem lies on amavis side. I was running an older version
> of unrar (unrar-4.2.4-1.el7.x86_64) until a malware went through our system because the
> RARv5 archive containing the malware could not be unpacked. So I've tried to upgrade the
> unrar version in our systems in order to handle RARv5 archives. The problem is that after
> upgrading (to unrar-5.4.0-1.el7.x86_64) I am now getting another error, such as:
> 
> amavis[21724]: (21724-01) (!)do_unrar: can't parse info line for ""  -rw-r--r--        68        72 105%  2020-04-15 15:01  6851CF3C  eicar.com\n 


In amavisd do_unrar function
....
        if ($unrarvers >= 5) {
          local($1,$2,$3,$4,$5);
          if ($ln !~ /^ ([* ]) \s+ \S+ \s+ (\d+) \s+ (\d+) \s+
                      ( \d+ % | --> | <-- | <-> ) \s+
                      \S+ \s+ \S+ \s+ \S+ \s+ (.*)/xs) {
            do_log($testing_for_sfx ? 4 : -1,
                   "do_unrar: can't parse info line for \"%s\" %s",
                   $member_name,$ln);

The "([* ]) \s+" part is faulty here, it's expecting additional whitespace
which isn't there.  Just change the \s+ to \s*.

Someone else can raise a bug..



More information about the amavis-users mailing list