From e40c589cd55c2c4918a2df25188f3f68a2c0140e Mon Sep 17 00:00:00 2001 From: Andre Sencioles Date: Wed, 29 Aug 2018 15:34:31 +1200 Subject: [PATCH] Fix duplicated mapping parameters on main.cf Fixes the creation of duplicated parameters on main.cf by using the "set_parameter" macro to append the mapping parameter to the "processed_parameters" list. --- postfix/files/main.cf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postfix/files/main.cf b/postfix/files/main.cf index 07bde25..48dc59b 100644 --- a/postfix/files/main.cf +++ b/postfix/files/main.cf @@ -129,7 +129,7 @@ policy-spf_time_limit = {{ policyd_spf.get('time_limit', '3600s') }} {%- set file_path = postfix.config_path ~ '/' ~ file_path %} {%- endif %} -{{ mapping }} = {{ file_type }}:{{ file_path }} +{{ set_parameter(mapping, file_type ~ ':' ~ file_path) }} {% endfor %} {# Accept arbitrary parameters -#}