Browse Source

postfix: Configure transport, too.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 4 years ago
parent
commit
4014df6a49
1 changed files with 12 additions and 0 deletions
  1. 12 0
      postfix/init.sls

+ 12 - 0
postfix/init.sls

@@ -77,6 +77,7 @@ postmap_domains:
     - watch:
       - file: /etc/postfix/virtual-domains
 
+
 /etc/postfix/virtual-aliases:
   file.managed:
     - source: salt://postfix/virtual-aliases
@@ -87,6 +88,17 @@ postmap_aliases:
     - watch:
       - file: /etc/postfix/virtual-aliases
 
+
+/etc/postfix/transport:
+  file.managed:
+    - source: salt://postfix/transport
+
+postmap_transport:
+  cmd.wait:
+    - name: /usr/sbin/postmap /etc/postfix/transport
+    - watch:
+      - file: /etc/postfix/transport
+
 /etc/postfix/mynetworks:
   file.managed:
     - source: salt://postfix/mynetworks