Add mailserver.dovecot.config option

This commit is contained in:
Julian Rother 2025-02-04 00:39:31 +01:00
parent cb44252733
commit 1b86e487cc
Signed by: julian
GPG key ID: C19B924C0CD13341
2 changed files with 14 additions and 0 deletions

View file

@ -26,6 +26,7 @@ mailserver:
srs_domain: "srs.{{ inventory_hostname }}" srs_domain: "srs.{{ inventory_hostname }}"
dovecot: dovecot:
debug: false debug: false
config: {}
postfixadmin: postfixadmin:
php_fpm_config: php_fpm_config:
user: postfixadmin user: postfixadmin

View file

@ -158,3 +158,16 @@ auth_verbose = yes
auth_debug = yes auth_debug = yes
mail_debug = yes mail_debug = yes
{% endif %} {% endif %}
{% macro config_items(obj) %}
{% for key, value in obj.items() %}
{% if value is mapping %}
{{ key }} {
{{ config_items(value)|indent(first=true) }}
}
{% else %}
{{ key }} = {{ value }}
{% endif %}
{% endfor %}
{% endmacro %}
{{ config_items(mailserver.dovecot.config) }}