change README.md
This commit is contained in:
37
README.md
37
README.md
@@ -33,21 +33,17 @@ The basic idea is to configure rules that contain actions. Both rules and action
|
|||||||
Global config options:
|
Global config options:
|
||||||
* **socket** (optional)
|
* **socket** (optional)
|
||||||
Socket used to communicate with the MTA. If it is not specified in the config, it has to be set as command line option.
|
Socket used to communicate with the MTA. If it is not specified in the config, it has to be set as command line option.
|
||||||
* **local_addrs** (optional)
|
* **local_addrs** (optional, default: **[fe80::/64, ::1/128, 127.0.0.0/8, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16]**)
|
||||||
List of hosts and network addresses which are considered local. It is used for the condition option [local](#Conditions).
|
List of hosts and network addresses which are considered local. It is used for the condition option [local](#Conditions).
|
||||||
Default: **[fe80::/64, ::1/128, 127.0.0.0/8, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16]**
|
* **loglevel** (optional, default: **info**)
|
||||||
* **loglevel** (optional)
|
|
||||||
Set the log level. This option may be overriden by any rule or action object.
|
Set the log level. This option may be overriden by any rule or action object.
|
||||||
Possible values:
|
Possible values:
|
||||||
* **error**
|
* **error**
|
||||||
* **warning**
|
* **warning**
|
||||||
* **info**
|
* **info**
|
||||||
* **debug**
|
* **debug**
|
||||||
|
* **pretend** (optional, default: **false**)
|
||||||
Default: **info**
|
|
||||||
* **pretend** (optional)
|
|
||||||
Pretend actions, for test purposes. This option may be overriden by any rule or action object.
|
Pretend actions, for test purposes. This option may be overriden by any rule or action object.
|
||||||
Default: **false**
|
|
||||||
* **rules**
|
* **rules**
|
||||||
List of rule objects.
|
List of rule objects.
|
||||||
|
|
||||||
@@ -140,7 +136,7 @@ The following action types and options are available.
|
|||||||
Path to a file which contains the html representation of the disclaimer.
|
Path to a file which contains the html representation of the disclaimer.
|
||||||
* **text_template**
|
* **text_template**
|
||||||
Path to a file which contains the text representation of the disclaimer.
|
Path to a file which contains the text representation of the disclaimer.
|
||||||
* **error_policy** (optional)
|
* **error_policy** (optional, default: **wrap**)
|
||||||
Set the error policy in case the disclaimer cannot be added (e.g. if the html part cannot be parsed).
|
Set the error policy in case the disclaimer cannot be added (e.g. if the html part cannot be parsed).
|
||||||
Possible values:
|
Possible values:
|
||||||
* **wrap**
|
* **wrap**
|
||||||
@@ -149,30 +145,24 @@ The following action types and options are available.
|
|||||||
Ignore the error and do nothing.
|
Ignore the error and do nothing.
|
||||||
* **reject**
|
* **reject**
|
||||||
Reject the e-mail.
|
Reject the e-mail.
|
||||||
|
* **add_html_body** (optional, default: **false**)
|
||||||
Default: **wrap**
|
|
||||||
* **add_html_body** (optional)
|
|
||||||
Generate a html body with the content of the text body if no html body is present.
|
Generate a html body with the content of the text body if no html body is present.
|
||||||
Default: **false**
|
|
||||||
|
|
||||||
* **store**
|
* **store**
|
||||||
Store e-mail.
|
Store e-mail.
|
||||||
* **type**
|
* **type**
|
||||||
See section [Storages](#Storages).
|
See section [Storages](#Storages).
|
||||||
* **original** (optional)
|
* **original** (optional, default: **false**)
|
||||||
If set to true, store the message as received by the MTA instead of storing the current state of the message, that may was modified already by other actions.
|
If set to true, store the message as received by the MTA instead of storing the current state of the message, that may was modified already by other actions.
|
||||||
Default: **false**
|
* **metadata** (optional, default: **false**)
|
||||||
* **metadata** (optional)
|
|
||||||
Store metadata.
|
Store metadata.
|
||||||
Default: **false**
|
|
||||||
* **metavar** (optional)
|
* **metavar** (optional)
|
||||||
Prefix for the name of the following metavariables which are provided by the storage:
|
Prefix for the metavariable names. If not set, no metavariables will be provided.
|
||||||
|
The storage provides the following metavariables:
|
||||||
* **ID** (the storage ID of the e-mail)
|
* **ID** (the storage ID of the e-mail)
|
||||||
* **DATAFILE** (path to the data file)
|
* **DATAFILE** (path to the data file)
|
||||||
* **METAFILE** (path to the meta file if **metadata** is set to **true**)
|
* **METAFILE** (path to the meta file if **metadata** is set to **true**)
|
||||||
|
|
||||||
If not set, no metavariables will be provided.
|
|
||||||
|
|
||||||
* **notify**
|
* **notify**
|
||||||
Send notification to receiver.
|
Send notification to receiver.
|
||||||
* **type**
|
* **type**
|
||||||
@@ -194,9 +184,8 @@ The following action types and options are available.
|
|||||||
* **ACCEPT** (Tell MTA to accept the e-mail, skip following rules/actions.)
|
* **ACCEPT** (Tell MTA to accept the e-mail, skip following rules/actions.)
|
||||||
* **REJECT** (Tell MTA to reject the e-mail.)
|
* **REJECT** (Tell MTA to reject the e-mail.)
|
||||||
* **DISCARD** (Tell MTA to discard the e-mail.)
|
* **DISCARD** (Tell MTA to discard the e-mail.)
|
||||||
* **reject_reason** (optional)
|
* **reject_reason** (optional, default: **Message rejected**)
|
||||||
Reject message used if milter_action is set to reject.
|
Reject message used if milter_action is set to reject.
|
||||||
Default: **Message rejected**
|
|
||||||
* **whitelist** (optional)
|
* **whitelist** (optional)
|
||||||
Options for a whitelist, see **whitelist** in section [Conditions](#Conditions).
|
Options for a whitelist, see **whitelist** in section [Conditions](#Conditions).
|
||||||
|
|
||||||
@@ -205,12 +194,10 @@ The following storage types are and options are available:
|
|||||||
* **file**
|
* **file**
|
||||||
* **directory**
|
* **directory**
|
||||||
Directory used to store e-mails.
|
Directory used to store e-mails.
|
||||||
* **metadata** (optional)
|
* **metadata** (optional, default: **false**)
|
||||||
Store metadata file.
|
Store metadata file.
|
||||||
Default: **false**
|
* **mode** (optional, default: system default)
|
||||||
* **mode** (optional)
|
|
||||||
File mode when new files are created.
|
File mode when new files are created.
|
||||||
Default: mode set by the system
|
|
||||||
|
|
||||||
### Notifications
|
### Notifications
|
||||||
The following notification types and options are available:
|
The following notification types and options are available:
|
||||||
|
|||||||
Reference in New Issue
Block a user