diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2015-05-31 23:17:17 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-06-07 02:54:02 +0200 |
commit | be2733485e51024e3274c36cf4ecd38418c3d610 (patch) | |
tree | c7f017498214258906e2be16f39ea329a9ab5edc /roles/IMAP/tasks/imap.yml | |
parent | acb068b4a5af0654d21c2830655b7c6156a2b845 (diff) |
Prefer '/usr/sbin/nologin' over '/bin/false' for system users.
Diffstat (limited to 'roles/IMAP/tasks/imap.yml')
-rw-r--r-- | roles/IMAP/tasks/imap.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/IMAP/tasks/imap.yml b/roles/IMAP/tasks/imap.yml index 9365640..e7023e7 100644 --- a/roles/IMAP/tasks/imap.yml +++ b/roles/IMAP/tasks/imap.yml @@ -1,36 +1,36 @@ - name: Install Dovecot apt: pkg={{ item }} with_items: - dovecot-core - dovecot-ldap - dovecot-imapd - dovecot-lmtpd - dovecot-antispam - dovecot-managesieved - dovecot-sieve - name: Create a user 'vmail' user: name=vmail system=yes createhome=no home=/home/mail - shell=/bin/false + shell=/usr/sbin/nologin password=! state=present ## TODO: make a LDAP query listing all users using iterate_attrs and ## iterate_filter. (Alternatively, use a dict, see ## https://www.opensource.apple.com/source/dovecot/dovecot-293/dovecot.Config/dovecot-dict-auth.conf.ext) ## Required for dbox, see ## http://wiki2.dovecot.org/MailboxFormat/dbox#Multi-dbox #- name: Create a nightly cron job to purge expunged messages # cron: name="Purge expunged messages" # minute=7 hour=5 # user=vmail cron_file=doveadm-purge # job="/usr/bin/doveadm purge -A" # The ownership and permissions ensure that dovecot won't try to # deliver mails under an umounted mountpoint. - name: Create a home directory for user 'vmail' file: path=/home/mail state=directory owner=root group=root |