Skip to content
Snippets Groups Projects
Commit 200f13bc authored by Lars Beckers's avatar Lars Beckers
Browse files

postfix: don't try to deploy undefined virtual aliases

parent eca98869
No related branches found
No related tags found
1 merge request!14postfix: don't try to deploy undefined virtual aliases
Pipeline #2845 passed
...@@ -103,6 +103,7 @@ ...@@ -103,6 +103,7 @@
template: template:
src: virtual.j2 src: virtual.j2
dest: /etc/postfix/virtual dest: /etc/postfix/virtual
when: virtual_aliases is defined or postfix_virtual_domains|count > 0
notify: notify:
- postmap virtual - postmap virtual
tags: tags:
......
...@@ -84,7 +84,9 @@ tls_ssl_options = NO_COMPRESSION ...@@ -84,7 +84,9 @@ tls_ssl_options = NO_COMPRESSION
alias_maps = cdb:/etc/aliases alias_maps = cdb:/etc/aliases
alias_database = cdb:/etc/aliases alias_database = cdb:/etc/aliases
{% if virtual_aliases is defined or postfix_virtual_domains|count > 0 %}
virtual_alias_maps = cdb:/etc/postfix/virtual virtual_alias_maps = cdb:/etc/postfix/virtual
{% endif %}
{% if postfix_virtual_domains|count > 0 %} {% if postfix_virtual_domains|count > 0 %}
virtual_mailbox_domains = {{ postfix_virtual_domains | join(", ") }} virtual_mailbox_domains = {{ postfix_virtual_domains | join(", ") }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment