diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2017-05-14 15:00:16 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2017-05-14 15:00:16 +0200 |
commit | 40eaa53a7bcfbf2f120ebff70e06a4657efcb8a7 (patch) | |
tree | 0ddddb9fef47bfe4f8e837da32d8270f2ee33c02 /roles/IMAP/tasks | |
parent | 6824ec3da9785f51457b4eb2606b1f3d7c48a939 (diff) |
IMAP: new script list-users.
Diffstat (limited to 'roles/IMAP/tasks')
-rw-r--r-- | roles/IMAP/tasks/imap.yml | 7 |
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 |