58 lines
1.5 KiB
YAML
58 lines
1.5 KiB
YAML
---
|
|
- apt: name=dovecot-ldap
|
|
when: dovecot_auth_ldap_enable
|
|
|
|
- apt: name=dovecot-pop3d
|
|
when: dovecot_proto_pop3_enable or dovecot_proto_pop3s_enable
|
|
|
|
- apt: name=dovecot-imapd
|
|
when: dovecot_proto_imap_enable or dovecot_proto_imapd_enable
|
|
|
|
- apt: name=dovecot-lmtpd
|
|
|
|
- apt: name=dovecot-managesieved
|
|
when: dovecot_proto_managesieve_enable
|
|
|
|
- apt: name=dovecot-antispam
|
|
when: dovecot_plugin_antispam_enable
|
|
|
|
- name: Configuración de Dovecot
|
|
template: dest="/etc/dovecot/conf.d/{{item}}" src="{{item}}.j2"
|
|
with_items:
|
|
- 10-mail.conf
|
|
- 10-auth.conf
|
|
- 10-ssl.conf
|
|
- 20-lmtp.conf
|
|
- 20-imap.conf
|
|
- 10-master.conf
|
|
- auth-ldap.conf.ext
|
|
- 15-mailboxes.conf
|
|
- 90-sieve.conf
|
|
- 90-quota.conf
|
|
- 90-antispam.conf
|
|
notify: restart dovecot
|
|
|
|
- name: configuracion dovecot-ldap
|
|
template:
|
|
dest: "/etc/dovecot/dovecot-ldap.conf.ext"
|
|
src: "dovecot-ldap.conf.ext.j2"
|
|
notify: restart dovecot
|
|
|
|
- name: enlace simbólico a dovecot-ldap.conf.ext
|
|
file:
|
|
src: dovecot-ldap.conf.ext
|
|
dest: /etc/dovecot/dovecot-ldap2.conf.ext
|
|
state: link
|
|
notify: restart dovecot
|
|
|
|
- file: path={{ dovecot_plugin_sieve.after }} state=directory
|
|
when: dovecot_plugin_sieve_enable
|
|
|
|
- file: path={{ dovecot_plugin_sieve.before }} state=directory
|
|
when: dovecot_plugin_sieve_enable
|
|
|
|
- name: filtro spam global en sieve-after
|
|
template: src=junk-filter.sieve.j2 dest={{dovecot_plugin_sieve.after}}/junk-filter.sieve
|
|
when: dovecot_plugin_sieve_enable
|
|
notify: recompile sieve scripts
|