Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revisionBoth sides next revision
accounting [2012-06-11 07:31] – created randersonaccounting [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 options:====+===== Tracking Options ===== 
 + 
 +==== 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
 <code>Policy: Default Outbound Policy</code> <code>Policy: Default Outbound Policy</code>
  
-===Sender===+==== Sender ===
 __Sender: IP:/bitmask__\\ __Sender: IP:/bitmask__\\
 Track counters using the sending IP masked with the bitmask provided. For instance if the sender's IP is 192.168.0.10 and the bitmask is /24 then the key in the database will be 192.168.0.0/24 and mail coming from that entire class-c or /24 will be tracked. Track counters using the sending IP masked with the bitmask provided. For instance if the sender's IP is 192.168.0.10 and the bitmask is /24 then the key in the database will be 192.168.0.0/24 and mail coming from that entire class-c or /24 will be tracked.
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: user@domain__\\ __Recipient: user@domain__\\
 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).
-<code>enable=1</code> 
  
-====Complete Example====+<code> 
 +enable=1 
 +</code> 
 + 
 +===== 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.
-<code>Limit number of outbound mails per sender to 10,000 per month...+ 
 +<code> 
 +Limit number of outbound mails per sender to 10,000 per month...
 Policy: Default Outbound Policy Policy: Default Outbound Policy
 Track: Sender:user@domain Track: Sender:user@domain
Line 77: Line 88:
 MessageSizeLimit: <leave blank> MessageSizeLimit: <leave blank>
 Verdict: REJECT Verdict: REJECT
-Data: "Account limit exceeded"</code>+Data: "Account limit exceeded" 
 +</code>