On 16 February 2017 at 06:52, <postmas...@wf-partner.com> wrote: > Hello, > > We are using amavisd with iRedMail. Banned mails are quarantined in a SQL > quarantine. > > Everytime I tried to release an email with amavisd-release an error occured: > > 450 4.5.0 Failure: File /var/lib/amavis/virusmails/BWEgBXUllkJU does not > exist at (eval 95) line 386, <GEN34> line 5. > > Now I realized that in amavisd-release there is no way to change $quar_type > to "Q", see the line: > > my $quar_type = $fn_suffix eq '.gz' ? 'Z' : $fn_path ne '' ? 'F' : ''; > > After I changed this line to > > my $quar_type = $fn_suffix eq '.gz' ? 'Z' : $fn_path ne '' ? 'F' : 'Q'; > > mails in SQL-quarantine are released by amavisd-release. > > But I don't know if this right for users not using a SQL-quarantine.
We use file-based quarantine. I tried this change and then amavisd-release does not work, I am sorry to report; there is no error message - just the mail is not released and the file remains in quarantine.