Mail::MtPolicyd::Plugin::Quota(3pm) | User Contributed Perl Documentation | Mail::MtPolicyd::Plugin::Quota(3pm) |
Mail::MtPolicyd::Plugin::Quota - mtpolicyd plugin for accounting in sql tables
version 2.05
This plugin can be used to do accounting based on request fields.
<Plugin quota-clients> module = "Quota" table_prefix = "acct_" # per month time_pattern = "%Y-%m" # per ip field = "client_address" # allow 1000 mails metric = "count" threshold = 1000 action = "defer you exceeded your monthly limit, please insert coin" </Plugin>
The module takes the following parameters:
The Accounting module stores the following metrics:
Default is to build counters on a monthly base.
For example use:
* "%Y-%W" for weekly * "%Y-%m-%d" for daily
See "man date" for format string sequences.
You must use the same time_pattern as used in for the Accounting module.
The table name will be the prefix + field_name.
Markus Benning <ich@markusbenning.de>
This software is Copyright (c) 2014 by Markus Benning <ich@markusbenning.de>.
This is free software, licensed under:
The GNU General Public License, Version 2, June 1991
2022-10-15 | perl v5.34.0 |