From 40eaa53a7bcfbf2f120ebff70e06a4657efcb8a7 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sun, 14 May 2017 15:00:16 +0200 Subject: IMAP: new script list-users. --- roles/IMAP/tasks/imap.yml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'roles/IMAP/tasks') 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 -- cgit v1.2.3