diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2016-05-22 23:54:40 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2016-05-22 23:54:40 +0200 |
commit | 7525e4c5dedea932491c80c3a5b597435a1e351f (patch) | |
tree | 7f5fd9c87660f8bbb850add8536f47074d361ff9 /roles/IMAP-proxy | |
parent | 73b2a602ee85706b2a1797632142058c6253ea5d (diff) |
Dovecot imapc: change imapproxy's homedir from /home/imapproxy to /var/lib/imapproxy.
Diffstat (limited to 'roles/IMAP-proxy')
-rw-r--r-- | roles/IMAP-proxy/files/etc/dovecot/conf.d/auth-imap.conf.ext | 2 | ||||
-rw-r--r-- | roles/IMAP-proxy/tasks/main.yml | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/roles/IMAP-proxy/files/etc/dovecot/conf.d/auth-imap.conf.ext b/roles/IMAP-proxy/files/etc/dovecot/conf.d/auth-imap.conf.ext index 7ab096f..ced2f80 100644 --- a/roles/IMAP-proxy/files/etc/dovecot/conf.d/auth-imap.conf.ext +++ b/roles/IMAP-proxy/files/etc/dovecot/conf.d/auth-imap.conf.ext @@ -13,5 +13,5 @@ passdb { # <doc/wiki/UserDatabase.Prefetch.txt> userdb { driver = prefetch - default_fields = home=/home/imapproxy/%d/%n + default_fields = home=/var/lib/imapproxy/%d/%n } diff --git a/roles/IMAP-proxy/tasks/main.yml b/roles/IMAP-proxy/tasks/main.yml index 7fcf91d..579fc7e 100644 --- a/roles/IMAP-proxy/tasks/main.yml +++ b/roles/IMAP-proxy/tasks/main.yml @@ -8,13 +8,13 @@ - name: Create a user 'imapproxy' user: name=imapproxy system=yes createhome=no - home=/home/imapproxy + home=/var/lib/imapproxy shell=/usr/sbin/nologin password=! state=present - name: Create a home directory for user 'imapproxy' - file: path=/home/imapproxy + file: path=/var/lib/imapproxy state=directory owner=imapproxy group=imapproxy mode=0700 |