Policy support

Different users may need different settings. With policy support enabled you can create different policies matching the needs of different user groups.

The default policy ('0') is just the configuration you have in clapf.conf. If you modify clapf.conf it means that you modify the default policy that applies to every user.

However, by creating different policies, you can override the default settings even as a per user basis. Let's say you want to mark and deliver spam messages to all your users, but a few users want to keep their spam to the spam quarantine. All you have to do is set clapf.conf for marking spam, then create a new policy group and set the variable named spam_oblivion_limit, then assign the new policy group those few users.

The configuration settings of any user comprises the default policy overidden by their own policy settings.

The policy settings are stored in MySQL database in the policy table.

Please note that if you want policy support, you should use LMTP delivery, otherwise the default policy settings (ie. in clapf.conf) takes place unless the email has a single recipient.