Files
ansible_role_mail/templates/10-mail.conf.j2
Luciano Giacchetta d61a4ddcef
All checks were successful
Molecule Tests / molecule-tests (pull_request) Successful in 7m18s
fix: Dovecot in Debian Trixie => 2.4 has add / deprecated configurations
2026-03-11 12:40:37 -03:00

34 lines
761 B
Django/Jinja

# Dovecot mail location configuration
# Ansible managed: {{ ansible_managed }}
{% if dovecot_major_version is defined and dovecot_major_version is version('2.4', '>=') %}
{% set _driver = dovecot_mail_location.split(':')[0] %}
{% set _path = dovecot_mail_location.split(':')[1] %}
mail_driver = {{ _driver }}
mail_path = {{ _path }}
{% else %}
mail_location = {{ dovecot_mail_location }}
{% endif %}
namespace inbox {
inbox = yes
mailbox Drafts {
special_use = \Drafts
auto = subscribe
}
mailbox Junk {
special_use = \Junk
auto = subscribe
}
mailbox Trash {
special_use = \Trash
auto = subscribe
}
mailbox Sent {
special_use = \Sent
auto = subscribe
}
mailbox "Sent Messages" {
special_use = \Sent
}
}