]> git.proxmox.com Git - pmg-docs.git/commitdiff
add Service Configuration Templates section
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 3 Jan 2018 12:54:57 +0000 (13:54 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 3 Jan 2018 12:54:57 +0000 (13:54 +0100)
asciidoc/asciidoc-pmg.conf
pmgconfig.adoc

index 7c522a50d0ca0639f5307ebc64c91777928c30ff..51c5f2f10fb147d2eec18a942f8fc882da19e07f 100644 (file)
@@ -8,6 +8,10 @@ forum-url=https://forum.proxmox.com/
 forum=https://forum.proxmox.com/[Proxmox Community Forum]
 manmanual=Proxmox Mail Gateway Documentation
 max-width=55em
+spamassassin=http://spamassassin.apache.org[SpamAssassin(TM)]
+postfix=http://www.postfix.org[Postfix]
+clamav=https://www.clamav.net[ClamAV(R)]
+tts=http://www.template-toolkit.org[Template Toolkit]
 ifndef::docinfo1[]
 author=Proxmox Server Solutions Gmbh
 email=support@proxmox.com
index 59403d0ff6f79c3046b5b5aac5d62a9b1909b7c1..778b75ae297ac65440e441756bdc3bdde2090283 100644 (file)
@@ -113,7 +113,46 @@ Key and certificate (combined) to encrypt mail traffic (TLS).
 Service Configuration Templates
 -------------------------------
 
-{pmg}
+{pmg} uses various services to implement mail filtering, for example
+the {postfix} Mail Transport Agent (MTA), the {clamav} antivirus
+engine and the Apache {spamassassin} project. Those services use
+separate configuration files, so we need to rewrite those files when
+configuration is changed.
+
+We use a template based approach to generate those files. The {tts} is
+a well known, fast and flexible template processing system. You can
+find the default templates in `/var/lib/pmg/templates/`. Please do not
+modify them directly, because your modification would get lost on the
+next update. Instead, copy them to `/etc/pmg/templates/`, then apply
+your changes there.
+
+Templates can access any configuration setting, and you can use the
+`pmgconfig dump` command to get a list of all variable names:
+
+----
+# pmgconfig dump
+...
+dns.domain = yourdomain.tld
+dns.hostname = pmg
+ipconfig.int_ip = 192.168.2.127
+pmg.admin.advfilter = 1
+...
+----
+
+The same tool is used to force regeneration of all template based
+configuration files. You need to run that after modifying a template,
+or when you directly edit configuration files
+
+----
+# pmgconfig sync --restart 1
+----
+
+Above commands also restarts services if underlying configuration
+files are changed. Please note that this is automatically done when
+you change the configuration using the GUI or API.
+
+NOTE: Modified templates from `/etc/pmg/templates/` are automatically
+synced from the master node to all cluster members.
 
 
 System Configuration