summaryrefslogtreecommitdiffstats
path: root/roles/IMAP/tasks/imap.yml
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2013-12-11 00:56:02 +0100
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:51:20 +0200
commit025db13070cabde62aed0b9c694baaaa4538b205 (patch)
treedba9185af69d65282fc061c54dc2306e732cdb17 /roles/IMAP/tasks/imap.yml
parent50df1556816e118b4bc449aaa7dfbab7a2ead626 (diff)
Configure dovecot's antispam filter.
Mails to be retrained are stored in the spooldir /home/mail/spamspool; later a daemon catches them up and feed them to sa-learn(1p). (On busy systems batch-process the learning should be much more efficient.) The folder transisition matrix along with the corresponding actions can be found there: http://hg.dovecot.org/dovecot-antispam-plugin/raw-file/5ebc6aae4d7c/doc/dovecot-antispam.7.txt See also dovecot-antispam(7).
Diffstat (limited to 'roles/IMAP/tasks/imap.yml')
-rw-r--r--roles/IMAP/tasks/imap.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/IMAP/tasks/imap.yml b/roles/IMAP/tasks/imap.yml
index d8bb352..e39e4bf 100644
--- a/roles/IMAP/tasks/imap.yml
+++ b/roles/IMAP/tasks/imap.yml
@@ -5,6 +5,7 @@
- dovecot-ldap
- dovecot-imapd
- dovecot-lmtpd
+ - dovecot-antispam
- name: Create a user 'vmail'
user: name=vmail system=yes
@@ -42,6 +43,14 @@
- recent
- unseen
+- name: Create directory /home/mail/spamspool
+ # There is no possibility for a name clash, since 'spamspool' isn't a
+ # valid domain
+ file: path=/home/mail/spamspool
+ state=directory
+ owner=vmail group=vmail
+ mode=0700
+
- name: Configure Dovecot
copy: src=etc/dovecot/{{ item }}
dest=/etc/dovecot/{{ item }}
@@ -55,9 +64,12 @@
- 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/auth-ldap.conf.ext
- dovecot-ldap.conf.ext
+ - dovecot-ldap-userdb.conf.ext
notify:
- Restart Dovecot