Oefenweb / ansible-postfix

Ansible role to set up postfix in Debian-like systems
MIT License
174 stars 83 forks source link

recipient_canonical_maps inserted twice in main.cf #75

Closed rhysxevans closed 4 years ago

rhysxevans commented 4 years ago

Hi

recipient_canonical_maps is defined twice , in main .cf if enabled

From templates/etc/postfix/main.cf.j2

{% if postfix_recipient_canonical_maps %}
recipient_canonical_maps = {{ postfix_default_database_type }}:{{ postfix_recipient_canonical_maps_file }}
{% endif %}
{% if postfix_recipient_canonical_maps %}
recipient_canonical_maps = hash:/etc/postfix/recipient_canonical_maps
{% endif %}

I have removed the last "if" from my local copy and it is working as expected

Thanks

tersmitten commented 4 years ago

This looks like a bug indeed. Maybe a merge issue?