ソースを参照

Adding vmail user/group. Setting Dovecot auth config.

merge-requests/1/merge
Christoph Haas 10年前
コミット
07916f2a89
4個のファイルの変更21行の追加0行の削除
  1. +2
    -0
      group_vars/all
  2. +1
    -0
      ispmail.yml
  3. +4
    -0
      roles/ispmail-dovecot/handlers/main.yml
  4. +14
    -0
      roles/ispmail-dovecot/tasks/main.yml

+ 2
- 0
group_vars/all ファイルの表示

@@ -1,2 +1,4 @@
ispmail_mysql_mailuser_password: fLxsWdf5ABLqwhZr

ispmail_dovecot_auth_mechanisms: plain login


+ 1
- 0
ispmail.yml ファイルの表示

@@ -7,4 +7,5 @@
- ispmail-certificate
- ispmail-database
- ispmail-postfix
- ispmail-dovecot


+ 4
- 0
roles/ispmail-dovecot/handlers/main.yml ファイルの表示

@@ -0,0 +1,4 @@
---
- name: restart dovecot
service: name=dovecot state=restarted


+ 14
- 0
roles/ispmail-dovecot/tasks/main.yml ファイルの表示

@@ -0,0 +1,14 @@
---
- name: Create the vmail group
group: name=vmail gid=5000
- name: Create the vmail user
user: name=vmail uid=5000 group=vmail
- name: Create mailbox directory
file: path=/var/vmail state=directory owner=vmail group=vmail
- name: Allow LOGIN authentication method for Outlook clients
lineinfile: dest=/etc/dovecot/conf.d/10-auth.conf regexp='^auth_mechanisms =' line='auth_mechanisms = {{ispmail_dovecot_auth_mechanisms}}' backrefs=yes
- name: Disabling system authentication
lineinfile: dest=/etc/dovecot/conf.d/10-auth.conf regexp='^!include auth-system.conf.ext' line='#!include auth-system.conf.ext' backrefs=yes
- name: Enabling SQL-based authentication
lineinfile: dest=/etc/dovecot/conf.d/10-auth.conf regexp='^\#!include auth-sql.conf.ext' line='!include auth-sql.conf.ext' backrefs=yes


読み込み中…
キャンセル
保存