Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
accounting [2012-06-11 07:31] – created randerson | accounting [2013-12-06 11:41] (current) – Punctuation fix. rspencer | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | =====Accounting Configuration===== | + | ====== Accounting Configuration ====== |
Accounting support from r343 (v2.1.0). This module supports message count and message cumulative size over a fixed period of time. Message counters can be based on (Tracked) depending on sender, recipient or sender IP. | Accounting support from r343 (v2.1.0). This module supports message count and message cumulative size over a fixed period of time. Message counters can be based on (Tracked) depending on sender, recipient or sender IP. | ||
- | ====Tracking | + | ===== Tracking |
+ | |||
+ | ==== Policy | ||
- | ===Policy=== | ||
__Policy: | __Policy: | ||
- | Track counters using the policy. All mail hitting this policy will be tracked in a single counter | + | Track counters using the policy. All mail hitting this policy will be tracked in a single counter. |
- | < | + | |
+ | < | ||
+ | Policy: Default Outbound Policy | ||
+ | </ | ||
+ | |||
+ | ==== Sender ==== | ||
- | ===Sender=== | ||
__Sender: IP:/ | __Sender: IP:/ | ||
Track counters using the sending IP masked with the bitmask provided. For instance if the sender' | Track counters using the sending IP masked with the bitmask provided. For instance if the sender' | ||
- | (Support for IPv6 is included in r493+, v2.1.x) | + | (Support for IPv6 is included in r493+, v2.1.x). |
Specifying any IPv6 bitmask, 1-128 will apply the bitmask to the sending server' | Specifying any IPv6 bitmask, 1-128 will apply the bitmask to the sending server' | ||
Line 28: | Line 34: | ||
A counter will be created for each sender user part of the domain, each user is tracked on its own just like the domain \ above. Any email originating from this user portion will be matched. | A counter will be created for each sender user part of the domain, each user is tracked on its own just like the domain \ above. Any email originating from this user portion will be matched. | ||
- | ===Recipient=== | + | ==== Recipient ==== |
__Recipient: | __Recipient: | ||
A counter will be created for each recipient email address and counters for each individual recipient will be tracked. | A counter will be created for each recipient email address and counters for each individual recipient will be tracked. | ||
Line 38: | Line 45: | ||
A counter will be created for each recipient user part of the domain, each user is tracked on its own just like the domain above. Any email destined to this user portion will be matched. | A counter will be created for each recipient user part of the domain, each user is tracked on its own just like the domain above. Any email destined to this user portion will be matched. | ||
- | ====Further Configuration==== | + | ===== Further Configuration |
__AccountingPeriod__\\ | __AccountingPeriod__\\ | ||
- | Period over which to account traffic [Day(0) , Week(1) or Month(2)] | + | Period over which to account traffic [Day(0) , Week(1) or Month(2)]. |
__MessageCountLimit__\\ | __MessageCountLimit__\\ | ||
Line 50: | Line 57: | ||
__Verdict__\\ | __Verdict__\\ | ||
- | REJECT, ALLOW, HOLD, DEFER, DISCARD, FILTER or REDIRECT | + | REJECT, ALLOW, HOLD, DEFER, DISCARD, FILTER or REDIRECT. |
- | __Data__\\ | + | __Data__\\. |
Text that will be sent along with verdict | Text that will be sent along with verdict | ||
__LastAccounting__\\ | __LastAccounting__\\ | ||
- | (present | + | (Present |
The first policy matched will be the only one that gets used, if you have 10 policies ranging from 1 to 10 in priority and you set this to ' | The first policy matched will be the only one that gets used, if you have 10 policies ranging from 1 to 10 in priority and you set this to ' | ||
+ | |||
defaults to no(0) | defaults to no(0) | ||
- | =====Server Configuration===== | + | ====== Server Configuration ====== |
Configuration for this module is done in the [Accounting] section in the configuration file. | Configuration for this module is done in the [Accounting] section in the configuration file. | ||
__enable__\\ | __enable__\\ | ||
Set to 1 if you wish to enable this module. Default 0 (disabled). | Set to 1 if you wish to enable this module. Default 0 (disabled). | ||
- | < | ||
- | ====Complete Example==== | + | < |
+ | enable=1 | ||
+ | </ | ||
+ | |||
+ | ===== Complete Example ===== | ||
The below example demonstrates how to limit the number of outbound emails per hour to 3600. | The below example demonstrates how to limit the number of outbound emails per hour to 3600. | ||
- | < | + | |
+ | < | ||
+ | Limit number of outbound mails per sender to 10,000 per month... | ||
Policy: Default Outbound Policy | Policy: Default Outbound Policy | ||
Track: Sender: | Track: Sender: | ||
Line 77: | Line 92: | ||
MessageSizeLimit: | MessageSizeLimit: | ||
Verdict: REJECT | Verdict: REJECT | ||
- | Data: " | + | Data: " |
+ | </ |