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: Mark Martinec <Mark.Martinec+amavis_at_nospam>
Date: Sat Mar 17 2012 - 01:03:11 GMT
To: amavis-users@amavis.org

Zhang Huangbin,

> Is it possible to set $clean_quarantine_* in policy bank?
> I tried with below setting, but failed:
>
> $policy_bank{'MYUSERS'} = {
> $clean_quarantine_method => 'clean-quarantine',
> $clean_quarantine_to => 'sql:',
> …
> }
>
> Error message is:
>
> Mar 7 13:00:29 c60 amavis[1962]: (01962-01) (!)loading policy bank
> "MYUSERS": unknown field ""
> Mar 7 13:00:29 c60 amavis[1962]: (01962-01) (!)loading policy bank
> "MYUSERS": unknown field "clean-quarantine"
>
> My original purpose is creating a policy_bank to quarantine
> certain emails which injected by Postfix, but not global setting.

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:',
...

See also my today's reply on a 'policy_bank reports unknown field'
topic.

  Mark