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.
This commit is contained in:
Andre Sencioles 2018-08-29 15:34:31 +12:00
parent cf42ec7e8c
commit e40c589cd5
1 changed files with 1 additions and 1 deletions

View File

@ -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 -#}