ansible-role-postfix/templates/virtual-aliases.cf.j2

11 lines
425 B
Django/Jinja

{% if postfix.ldap.enable %}
server_host = {{ postfix.ldap.server.host }}
server_port = {{ postfix.ldap.server.port }}
bind_dn = {{ postfix.ldap.bind_dn }}
bind_pw = {{ postfix.ldap.bind_pw }}
search_base = {{ postfix.ldap.aliases.search_base }}
query_filter = {{ postfix.ldap.aliases.filter }}
result_attribute = {{ postfix.ldap.result_attributes.maildrop }}
{% else %}
# LDAP is not configured for this server.
{% endif %}