Commit 6d33f02a authored by Hinrikus Wolf's avatar Hinrikus Wolf
Browse files

Merge branch 'postfix-optional-virtual' into 'master'

postfix: don't try to deploy undefined virtual aliases

See merge request !14
parents 2475e025 200f13bc
Pipeline #2846 passed with stage
in 36 seconds
......@@ -105,6 +105,7 @@
template:
src: virtual.j2
dest: /etc/postfix/virtual
when: virtual_aliases is defined or postfix_virtual_domains|count > 0
notify:
- postmap virtual
tags:
......
......@@ -98,7 +98,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 and postfix_enable_dovecot %}
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