amavisd-release does not work with SQL quarantine (missing quar_type = "Q")

Dominic Raferd dominic at timedicer.co.uk
Thu Feb 16 09:11:35 CET 2017


On 16 February 2017 at 06:52,  <postmaster at 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.


More information about the amavis-users mailing list