summaryrefslogtreecommitdiffstats
path: root/roles/IMAP/tasks
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2017-05-14 15:00:16 +0200
committerGuilhem Moulin <guilhem@fripost.org>2017-05-14 15:00:16 +0200
commit40eaa53a7bcfbf2f120ebff70e06a4657efcb8a7 (patch)
tree0ddddb9fef47bfe4f8e837da32d8270f2ee33c02 /roles/IMAP/tasks
parent6824ec3da9785f51457b4eb2606b1f3d7c48a939 (diff)
IMAP: new script list-users.
Diffstat (limited to 'roles/IMAP/tasks')
-rw-r--r--roles/IMAP/tasks/imap.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/IMAP/tasks/imap.yml b/roles/IMAP/tasks/imap.yml
index f4a23e4..fc171a3 100644
--- a/roles/IMAP/tasks/imap.yml
+++ b/roles/IMAP/tasks/imap.yml
@@ -9,6 +9,13 @@
- dovecot-managesieved
- dovecot-sieve
+# 7 5 * * * root users=$(mktemp --tmpdir) && sudo -u dovecot /usr/local/bin/list-members.pl && sudo -u vmail nice -n 19 /usr/bin/doveadm purge -F"$users"
+- name: Copy list-users.pl
+ copy: src=usr/local/bin/list-users.pl
+ dest=/usr/local/bin/list-users.pl
+ owner=root group=root
+ mode=0755
+
- name: Create a user 'vmail'
user: name=vmail system=yes
createhome=no