This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
2016-11-25 00:04:34 +01:00
|
|
|
---
|
|
|
|
- name: Configure dovecot
|
|
|
|
template: src={{item}} dest=/etc/dovecot/{{item}} owner=vmail group=vmail mode=640
|
|
|
|
with_items:
|
|
|
|
- dovecot.conf
|
|
|
|
- dovecot-sql.conf
|
|
|
|
- dovecot-sql_lda.conf
|
|
|
|
notify: restart dovecot
|
|
|
|
|
|
|
|
# Authentification
|
2016-12-13 17:22:52 +01:00
|
|
|
- name: Download warehost-auth
|
2016-12-29 09:15:13 +01:00
|
|
|
get_url: url=https://warehost.sum7.eu/downloads/current/warehost-auth dest=/usr/local/bin/warehost-auth owner=root group=root mode=0755 force=yes
|
2016-11-25 00:04:34 +01:00
|
|
|
|
|
|
|
- name: Configurate authentification
|
|
|
|
template: src=warehost-auth.conf dest=/etc/warehost/auth.conf mode=660 owner=vmail group=vmail
|
|
|
|
|
|
|
|
- name: Install warehost-auth to dovecot
|
|
|
|
template: src=dovecot_auth.sh dest=/etc/dovecot/warehost-auth-dovecot mode=770 owner=vmail group=vmail
|
|
|
|
|
|
|
|
# Sieve
|
|
|
|
- name: Create sieve folder
|
|
|
|
file: path=/var/lib/dovecot/sieve/ state=directory mode=770 owner=vmail group=vmail
|
|
|
|
|
|
|
|
- name: Sieve for Spamassassin
|
|
|
|
template: src=sieve_default dest=/var/lib/dovecot/sieve/default.sieve owner=root group=root mode=644
|
|
|
|
notify: restart dovecot
|
|
|
|
|
|
|
|
- name: Generate sieve
|
|
|
|
command: sievec /var/lib/dovecot/sieve/default.sieve creates=/var/lib/dovecot/sieve/default.svbin
|
|
|
|
|
|
|
|
- name: Enable dovecot
|
2016-12-08 00:49:50 +01:00
|
|
|
service: name=dovecot enabled=yes
|