configure SASLauth daemon to authenticate with IMAP server
This commit is contained in:
parent
c271161f96
commit
2953e57a25
1 changed files with 22 additions and 0 deletions
|
@ -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 #
|
||||
|
|
Loading…
Reference in a new issue