amavisd-release

R. Sterenborg (Lists) lists at sterenborg.info
Tue Aug 28 17:22:59 CEST 2018


I know, that's where I found it. We're just not gzipping the quarantined 
files.

Unless I'm mistaken the path I'm using should be correct according to 
the configuration I posted (or else I hope someone can enlighten me 
where I'm mistaken).
When I specify any other path+filename, then amavisd-release will 
respond with "Invalid quarantine ID: /path/to/quarantine_file", which to 
me looks like it doesn't even try to read the file.


--
Thanks,
Rob


On 2018-08-28 15:26, curtis at maurand.com wrote:
> The log will tell you where it stored the message and it's filename.
>
> amavisd-release <filename>
>
> In my case (Ubuntu Server with ispconfig) they can be found in /var/lib/amavis/virusmails.  The log tells me something like W/spam-W3Uej3sqIbDm.gz.
>
> So I type
>
> amavisd-release W/spam-W3Uej3sqIbDm.gz
>
> Hope that helps.
>
> --Curtis
>
>
>
>
>
> August 28 2018 5:31 AM, "R. Sterenborg (Lists)" <lists at sterenborg.info> wrote:
>> I'm struggling with getting amavisd-release to work.
>>
>> Amavisd 2.11.0 on CentOS 7.
>>
>> In amavisd.conf:
>> =====================
>> $inet_socket_port                 = [ 9998, 10024, 10026 ];
>>
>> $do_syslog                        = 0;
>> $logfile                          = '/path/to/amavisd.log';
>>
>> $QUARANTINEDIR                    = '/path/to/amavisd/quarantine';
>> $virus_quarantine_method          = 'local:virus/virus-%i-%n';
>> $spam_quarantine_method           = 'local:spam/spam-%b-%i-%n';
>> $banned_files_quarantine_method   = 'local:banned/banned-%i-%n';
>> $bad_header_quarantine_method     = 'local:badh/badh-%i-%n';
>>
>> $interface_policy{'9998'}         = 'AM.PDP-INET';
>> $policy_bank{'AM.PDP-INET'}       = {
>> protocol                        => 'AM.PDP',
>> inet_acl                        => [qw( 127.0.0.1 )],
>> auth_required_release           => 0,
>> };
>> =====================
>>
>> In amavisd-release:
>> =====================
>> $socketname = '127.0.0.1:9998';
>> =====================
>>
>>  From https://www.ijs.si/software/amavisd/amavisd-new-docs.html#quar-release:
>>
>> "The secret_id is stored in SQL table msgs when logging to SQL is enabled, otherwise this
>> information is not accessible."
>>
>> We're not using SQL with amavisd, so I set auth_required_release to 0.
>>
>> Whenever I try to release an email, it fails:
>>
>> # amavisd-release virus/virus-20180827T110127-45477-09
>> 250 2.5.0 No recipients, nothing to do
>>
>> # amavisd-release virus/virus-20180827T110127-45477-09 ''
>> 250 2.5.0 No recipients, nothing to do
>>
>> # amavisd-release virus/virus-20180827T110127-45477-09 '' user at domain.tld
>> 450 4.5.0 ERROR: Stored quarantine ID 'ziXFTUeDuvT7' does not match requested ID
>> 'virus-20180827T110127-45477-09' at /usr/sbin/amavisd line 11904.
>>
>> Changing from inet_socket_port to unix_socketname doesn't change the result.
>>
>> Can someone please help me find the error I'm making?
>>
>> Thanks,
>> Rob



More information about the amavis-users mailing list