2026-02-10 17:24:59 -03:00
|
|
|
# Dovecot mail location configuration
|
|
|
|
|
# Ansible managed: {{ ansible_managed }}
|
2026-03-11 12:40:37 -03:00
|
|
|
{% 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 %}
|
2026-02-10 17:24:59 -03:00
|
|
|
mail_location = {{ dovecot_mail_location }}
|
2026-03-11 12:40:37 -03:00
|
|
|
{% endif %}
|
2026-02-10 17:24:59 -03:00
|
|
|
namespace inbox {
|
|
|
|
|
inbox = yes
|
2026-02-10 19:06:41 -03:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|
}
|
2026-02-10 17:24:59 -03:00
|
|
|
}
|