Commit 200f13bc authored by Lars Beckers's avatar Lars Beckers
Browse files

postfix: don't try to deploy undefined virtual aliases

parent eca98869
Pipeline #2845 passed with stage
in 36 seconds
......@@ -103,6 +103,7 @@
template:
src: virtual.j2
dest: /etc/postfix/virtual
when: virtual_aliases is defined or postfix_virtual_domains|count > 0
notify:
- postmap virtual
tags:
......
......@@ -84,7 +84,9 @@ tls_ssl_options = NO_COMPRESSION
alias_maps = 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
{% endif %}
{% if postfix_virtual_domains|count > 0 %}
virtual_mailbox_domains = {{ postfix_virtual_domains | join(", ") }}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment