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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user