configure SASLauth daemon to authenticate with IMAP server

This commit is contained in:
Antonio J. Delgado 2023-01-30 23:03:04 +02:00
parent c271161f96
commit 2953e57a25

View file

@ -153,6 +153,22 @@
backup: true
create: true
- name: Ensure SASL authentication daemon use IMAP mechanism
lineinfile:
path: /etc/default/saslauthd
regexp: '^MECHANISMS='
line: 'MECHANISMS="rimap"'
backup: true
create: true
- name: Ensure SASL authentication daemon configure IMAP mechanism
lineinfile:
path: /etc/default/saslauthd
regexp: '^MECH_OPTIONS='
line: 'MECH_OPTIONS="127.0.0.1"'
backup: true
create: true
- name: Ensure CRON job to update clients exists
cron:
name: "Update SMTPD trusted clients"
@ -191,6 +207,12 @@
regexp: "^{{ item.user }}: "
loop: "{{ local_aliases }}"
notify: Refresh aliases
- name: Ensure postfix belongs to sasl group
user:
append: true
groups:
- sasl
###################
# #
# This at the end #