diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2013-12-16 06:06:33 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-06-07 02:51:30 +0200 |
commit | b51df24e3b1b64c17a3aac652b142e2082c77a26 (patch) | |
tree | d2a4c1b42a0b4b43f535e934f06a2c87a0b2ade7 /roles/IMAP/tasks | |
parent | 522ba399d24e8166681b328f550904fcd4d8fad9 (diff) |
Configure Sieve and ManageSieve.
Also, add the 'managesieve' RoundCube plugin to communicate with our
server.
Diffstat (limited to 'roles/IMAP/tasks')
-rw-r--r-- | roles/IMAP/tasks/imap.yml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/IMAP/tasks/imap.yml b/roles/IMAP/tasks/imap.yml index e39e4bf..163e10d 100644 --- a/roles/IMAP/tasks/imap.yml +++ b/roles/IMAP/tasks/imap.yml @@ -1,28 +1,30 @@ - name: Install Dovecot apt: pkg={{ item }} with_items: - dovecot-core - dovecot-ldap - dovecot-imapd - dovecot-lmtpd - dovecot-antispam + - dovecot-managesieved + - dovecot-sieve - name: Create a user 'vmail' user: name=vmail system=yes home=/home/mail shell=/bin/false password=! state=present - name: Create a home directory for user 'vmail' file: path=/home/mail state=directory owner=vmail group=vmail mode=0700 - name: Create virtual mailbox directories file: path=/etc/dovecot/virtual{{ item }} state=directory owner=root group=root mode=0755 with_items: @@ -50,31 +52,32 @@ state=directory owner=vmail group=vmail mode=0700 - name: Configure Dovecot copy: src=etc/dovecot/{{ item }} dest=/etc/dovecot/{{ item }} owner=root group=root mode=0644 register: r with_items: - conf.d/10-auth.conf - conf.d/10-logging.conf - conf.d/10-mail.conf - conf.d/10-master.conf - conf.d/10-ssl.conf - conf.d/15-mailboxes.conf - conf.d/20-imap.conf - conf.d/20-lmtp.conf - conf.d/90-plugin.conf + - conf.d/90-sieve.conf - conf.d/auth-ldap.conf.ext - dovecot-ldap.conf.ext - dovecot-ldap-userdb.conf.ext notify: - Restart Dovecot - name: Start Dovecot service: name=dovecot state=started when: not r.changed - meta: flush_handlers |