Is it possible to set $clean_quarantine_* in policy_bank?

Mark Martinec Mark.Martinec+amavis at ijs.si
Sat Mar 17 02:03:11 CET 2012


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


More information about the amavis-users mailing list