Paolo,

> I think the following quarantining method is not supported right-away,
> but it requires policy banks:
>
> @domain1 => quarantine to SQL DB_ONE
> @domain2 => quarantine to SQL DB_TWO

As Gary correctly determined, it is not possible to use more than one
SQL database. However, it should be possible to use different SQL tables
for different policy bank, because %sql_clause is a member of policy banks
(but I admit I never tried it).

Nevertheless, this probably is not what you are looking for, because
policy banks are switched based on some common message property (client
IP address, sender, potentially other), and not based on recipient
address - the fundamenta difference is that a message may have
multiple recipients, but only one sender/IP/policy bank.

> @domain3 => plus-addressing
> default  => quarantine to file

Plus addressing is configurable per-recipient
through @addr_extension_spam_maps, and may be turned off
for some recipients/domains by that same mechanism.

> @storage_sql_dsn is used, but @lookup_sql_dsn is undefined (using LDAP
> instead).

Ok, SQL lookups ane SQL storage are almost entirely independent.

> So, do I need to dig into policy banks?

Yes - if decision is based on sender IP or sender address,
no - if decision is to be based on recipient address.

Gary V writes:
> Mark,
> I'm not sure what the syntax would look like if one should want to
> redefine quarantine_method and quarantine_to in a policy bank.

Only the following variables are members of policy banks:
%quarantine_method_by_ccat and %quarantine_to_maps_by_ccat,
so these new by-content-type settings must be used, e.g.:

$policy_bank{'XXX'} = {
  quarantine_method_by_ccat => {
    CC_VIRUS,  'local:virus-%m's,
    CC_BANNED, 'local:banned-%m',
    CC_SPAM,   'local:spam-%m.gz',
  },
  quarantine_to_maps_by_ccat => {
    CC_VIRUS,  'virus-quarantine',
    CC_BANNED, 'banned-quarantine',
    CC_SPAM,   'spam-quarantine',
  },
};

(untested)

Only the hash entries that are to be overruled
need to be specified in hashes within a policy bank.

  Mark

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to