From 025db13070cabde62aed0b9c694baaaa4538b205 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Wed, 11 Dec 2013 00:56:02 +0100 Subject: 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). --- roles/IMAP/tasks/imap.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'roles/IMAP/tasks') 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 -- cgit v1.2.3