Differences

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

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
accesscontrol [2012-06-08 14:42]
randerson created
accesscontrol [2012-06-11 06:38]
randerson [Module Configuration]
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 below manner
  
-Access Control ​Configuration +====Module ​Configuration==== 
- +<​code>​Type: HOLD 
-Type: HOLD +Parameter: optional_log_message</​code>​ 
-Parameter: 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>​
- +
-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;"​. +
- +
-Type: REJECT  +
-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.
  
-Type: DISCARD +<​code>​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;"​.
  
-Type: FILTER +<​code>​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 
 +Parameter: user@domain</​code>​ 
 +Redirect the message to another user
  
-Type: REDIRECT +<​code>​Type: OK  
-Parameter: user@domain +Parameter: optional_log_message</​code>​ 
- +  ​* ​present in r387+, v2.0.8 and v2.1.x 
-Redirect the message to another user. +Return OK back to MTA, in the case of Postfix this will allow the message and not process further postfix rules
- +
-Type: OK  +
-Parameter: optional_log_message +
-(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+
  
 +====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>​
-IE: enable=1+
  
 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>​