]> git.proxmox.com Git - pmg-docs.git/commitdiff
pmg-rule-macros.adoc: new file
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 22 Feb 2017 11:39:36 +0000 (12:39 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 22 Feb 2017 11:39:36 +0000 (12:39 +0100)
pmg-admin-guide.adoc
pmg-rule-macros.adoc [new file with mode: 0644]

index dc242a41f2418a5d70efb973ffaef858403bf537..b73e92a6f65529fc99359fae016c4eac1a54ae9d 100644 (file)
@@ -96,6 +96,8 @@ TODO
 
 :leveloffset: 0
 
 
 :leveloffset: 0
 
+[appendix]
+include::pmg-rule-macros.adoc[]
 
 [appendix]
 Configuration Files
 
 [appendix]
 Configuration Files
diff --git a/pmg-rule-macros.adoc b/pmg-rule-macros.adoc
new file mode 100644 (file)
index 0000000..d3b6aa5
--- /dev/null
@@ -0,0 +1,29 @@
+[[rule_system_macros]]
+Available Macros for the Rule System
+------------------------------------
+
+It is possible to use macros inside most fields of action objects.
+That way it is possible to access and include data contained in the
+original mail, get envelope sender and receivers addresses or include
+additional information about Viruses and Spam. Currently the
+following macros are defined:
+
+[cols="l,3d",options="header"]
+|======
+|Macro               |Comment
+|__SENDER__         |(envelope) sender mail address
+|__RECEIVERS__       |(envelope) receiver mail address list
+|__ADMIN__           |Email address of the administrator
+|__TARGETS__         |Subset of receivers matched by the rule
+|__SUBJECT__         |Subject of the message
+|__MSGID__           |The message ID
+|__RULE__            |Name of the matching rule
+|__RULE_INFO__       |Additional information about the matching rule
+|__VIRUS_INFO__      |Additional information about detected viruses
+|__SPAMLEVEL__       |Computed spam level
+|__SPAM_INFO__       |Additional information why message is spam
+|__SENDER_IP__       |IP address of sending host
+|__VERSION__         |The current software version (proxmox mail gateway)
+|__FILENAME__        |Attachment file name
+|__SPAMSTARS__       |A series of "*" charactes where each one represents a full score (__SPAMLEVEL__) point
+|======