Enhance mail configuration: add envelope support in Sieve, create SMTP and IMAP SRV records, update Dovecot settings, and implement Postfix startup script

This commit is contained in:
2025-03-16 19:37:44 +01:00
parent 7dd59fa72a
commit 51d6229b03
7 changed files with 406 additions and 51 deletions
+16
View File
@@ -10,6 +10,8 @@
mail_home: "{{ persistent_data | default('/var/lib') }}/mail"
mail_user_id: 1000
mail_group_id: 1000
postfix_user_id: 100
postfix_group_id: 101
tags: always
- name: Set required facts
@@ -43,3 +45,17 @@
tags:
- tasks
- tasks::folders
- name: Create required postfix folders
become: true
ansible.builtin.file:
state: directory
path: "{{ item }}"
mode: "0750"
owner: "{{ postfix_user_id }}"
group: "{{ postfix_group_id }}"
loop:
- "{{ mail_home }}/postfix"
tags:
- tasks
- tasks::folders