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

View File

@ -129,7 +129,7 @@ policy-spf_time_limit = {{ policyd_spf.get('time_limit', '3600s') }}
{%- set file_path = postfix.config_path ~ '/' ~ file_path %} {%- set file_path = postfix.config_path ~ '/' ~ file_path %}
{%- endif %} {%- endif %}
{{ mapping }} = {{ file_type }}:{{ file_path }} {{ set_parameter(mapping, file_type ~ ':' ~ file_path) }}
{% endfor %} {% endfor %}
{# Accept arbitrary parameters -#} {# Accept arbitrary parameters -#}