From eea2b21f0f64f292f96b4248be4f738a15a9e08f Mon Sep 17 00:00:00 2001
From: Chris Coley <chris@codingallnight.com>
Date: Tue, 19 Jun 2018 12:35:49 -0700
Subject: [PATCH] Adding the transport_maps attribute to main.cf so that it
 actually works

---
 templates/main.cf.j2 | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/templates/main.cf.j2 b/templates/main.cf.j2
index 2d3f500..f77b0a0 100644
--- a/templates/main.cf.j2
+++ b/templates/main.cf.j2
@@ -33,6 +33,11 @@ smtpd_use_tls = {{ 'yes' if postfix__smtpd_use_tls else 'no' }}
 smtpd_tls_session_cache_database = {{ postfix__smtpd_tls_session_cache_database }}
 smtp_tls_session_cache_database = {{ postfix__smtp_tls_session_cache_database }}
 
+{% if postfix__transport_map %}
+# Transport map(s)
+transport_maps = hash:/etc/postfix/transport
+{% endif %}
+
 {% if postfix__smtp_sasl_password_map %}
 # SASL authentication
 smtp_sasl_auth_enable = {{ 'yes' if postfix__smtp_sasl_auth_enable else 'no' }}
-- 
GitLab