Differences
This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
accounting [2012-06-11 07:31] – created randerson | accounting [2013-12-06 11:38] – Fix formatting 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 | ||
< | < | ||
- | ===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' | ||
Line 28: | Line 31: | ||
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 42: | ||
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__\\ | ||
Line 61: | Line 65: | ||
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 88: | ||
MessageSizeLimit: | MessageSizeLimit: | ||
Verdict: REJECT | Verdict: REJECT | ||
- | Data: " | + | Data: " |
+ | </ |