Differences

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

Link to this comparison view

Next revision
Previous revision
accesscontrol [2012-06-08 14:42] – created randersonaccesscontrol [2013-12-06 11:28] (current) – Fix formatting rspencer
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 Configuration+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 Type: HOLD
 Parameter: optional_log_message Parameter: optional_log_message
 +</code>
  
-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>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  Type: REJECT 
 Parameter: message_to_reject_with 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 Type: DISCARD
 Parameter: optional_log_message 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 Type: FILTER
 Parameter: content_filter Parameter: content_filter
 +</code>
  
 Send message to the specified content filter. Send message to the specified content filter.
  
 +<code>
 Type: REDIRECT Type: REDIRECT
 Parameter: user@domain Parameter: user@domain
 +</code>
  
 Redirect the message to another user. Redirect the message to another user.
  
 +<code>
 Type: OK  Type: OK 
 Parameter: optional_log_message Parameter: optional_log_message
-(present in r387+, v2.0.8 and v2.1.x)+</code> 
 + 
 +  * 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. Return OK back to MTA, in the case of Postfix this will allow the message and not process further postfix rules.
  
-Server Configuration+===== 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).
  
-IE: enable=1+<code> 
 +enable=1 
 +</code>
  
-Complete Example+==== Complete Example ====
  
-Taking the policies described in the other feature document, we can reject all outbound email like this...+Taking the policies described in the other feature document, we can reject all outbound email:
  
 +<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"^+Data: "No outbound mail allowed" 
 +</code>