amavis-user March 2012 archive
Main Archive Page > Month Archives  > amavis-user archives
amavis-user: Re: Is it possible to set $clean_quarantine_* in po

Re: Is it possible to set $clean_quarantine_* in policy_bank?

From: Zhang Huangbin <zhbmaillistonly_at_nospam>
Date: Mon Mar 19 2012 - 13:37:45 GMT
To: Mark Martinec <Mark.Martinec+amavis@ijs.si>

On Saturday, March 17, 2012 at 9:03 AM, Mark Martinec wrote:

> Leave out the '$' in front of names of a setting
> when used as a key in a policy bank:
>
> $policy_bank{'MYUSERS'} = {
> clean_quarantine_method => 'clean-quarantine',
> clean_quarantine_to => 'sql:',
> ...

Hi Mark,

Thanks for your reply.

I tried, but failed:

Mar 19 21:34:46 suse amavis[5146]: (05146-01) (!)loading policy bank "MYUSERS": unknown field "clean_quarantine_to"
Mar 19 21:34:49 suse amavis[5146]: (05146-01) (!!)TROUBLE in check_mail: quar+notif FAILED: mail_dispatch: no recognized protocol name: clean-quarantine at /usr/sbin/amavisd line 7892.
Mar 19 21:34:49 suse amavis[5146]: (05146-01) (!)PRESERVING EVIDENCE in /var/spool/amavis/tmp/amavis-20120319T213446-05146-hFgywlHk

Amavisd version:

# amavisd -V
amavisd-new-2.7.0 (20110701)

Settings in amavisd.conf:

$policy_bank{'MYUSERS'} = {
    ...
    clean_quarantine_method => 'clean-quarantine',
    clean_quarantine_to => 'sql:',
};

Suggestions?

---- Zhang Huangbin iRedMail: Open Source Mail Server Solution for Red Hat Enterprise Linux, CentOS, Scientific Linux, Debian, Ubuntu, Mint, Gentoo, openSUSE, FreeBSD: http://www.iredmail.org/