Differences

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

Link to this comparison view

Both sides previous revision Previous revision
accesscontrol [2012-06-11 06:38]
randerson [Module Configuration]
accesscontrol [2013-12-06 11:28] (current)
rspencer Fix formatting
Line 1: Line 1:
-=====Access Control===== +====== Access Control =====
-Access control refers to plain and simple access control you can perform on email, this includes holding, rejecting, discarding (dropping), filtering or redirecting. Configuration can be specified in the below manner+ 
 +Access control refers to plain and simple access control you can perform on email, this includes holding, rejecting, discarding (dropping), filtering or redirecting. Configuration can be specified in the following ​manner
 + 
 +===== Module Configuration ===== 
 + 
 +<​code>​ 
 +Type: HOLD 
 +Parameter: optional_log_message 
 +</​code>​
  
-====Module Configuration==== 
-<​code>​Type:​ HOLD 
-Parameter: optional_log_message</​code>​ 
 <​nowiki>​This will put the message on hold. This verdict pertains to all recipients of the message. The optional log message is added in the logs in the following position... "<​test@example.com>:​ Recipient address optional_log_message;"​.</​nowiki>​ <​nowiki>​This will put the message on hold. This verdict pertains to all recipients of the message. The optional log message is added in the logs in the following position... "<​test@example.com>:​ Recipient address optional_log_message;"​.</​nowiki>​
  
-<​code>​Type:​ REJECT  +<​code>​ 
-Parameter: message_to_reject_with</​code>​+Type: REJECT  
 +Parameter: message_to_reject_with 
 +</​code>​ 
 This will reject the mesage with the message specified. A blank message will reject the message with the builtin default. This will reject the mesage with the message specified. A blank message will reject the message with the builtin default.
  
-<​code>​Type:​ DISCARD +<​code>​ 
-Parameter: optional_log_message</​code>​+Type: DISCARD 
 +Parameter: optional_log_message 
 +</​code>​ 
 Discard the message. ie. Delete it. The optional log message is added in the logs in the following position... ": Recipient address optional_log_message;"​. Discard the message. ie. Delete it. The optional log message is added in the logs in the following position... ": Recipient address optional_log_message;"​.
  
-<​code>​Type:​ FILTER +<​code>​ 
-Parameter: content_filter</​code>​ +Type: FILTER 
-Send message to the specified content filter+Parameter: content_filter 
 +</​code>​
  
-<​code>​Type:​ REDIRECT +Send message to the specified content filter. 
-Parameter: user@domain</​code>​ + 
-Redirect the message to another user+<​code>​ 
 +Type: REDIRECT 
 +Parameter: user@domain 
 +</​code>​ 
 + 
 +Redirect the message to another user
 + 
 +<​code>​ 
 +Type: OK  
 +Parameter: optional_log_message 
 +</​code>​
  
-<​code>​Type:​ OK  
-Parameter: optional_log_message</​code>​ 
   * present in r387+, v2.0.8 and v2.1.x   * present in r387+, v2.0.8 and v2.1.x
-Return OK back to MTA, in the case of Postfix this will allow the message and not process further postfix rules 
  
-====Server Configuration====+Return OK back to MTA, in the case of Postfix this will allow the message and not process further postfix rules. 
 + 
 +===== Server Configuration ====
 Configuration for this module is done in the [AccessControl] section in the configuration file. Configuration for this module is done in the [AccessControl] 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 ​==== 
 + 
 +Taking the policies described in the other feature document, we can reject all outbound email:
  
-Taking the policies described in the other feature document, we can reject all outbound email +<​code>​ 
-<​code>​Reject all outbound email+Reject all outbound email
 Policy: Default Outbound Policy Policy: Default Outbound Policy
 Verdict: REJECT Verdict: REJECT
-Data: "No outbound mail allowed"</​code>​+Data: "No outbound mail allowed"​ 
 +</​code>​