diff options
Diffstat (limited to 'playbooks/roles/mail/templates/volumes/data/dms/config/user-patches.sh')
-rwxr-xr-x | playbooks/roles/mail/templates/volumes/data/dms/config/user-patches.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/playbooks/roles/mail/templates/volumes/data/dms/config/user-patches.sh b/playbooks/roles/mail/templates/volumes/data/dms/config/user-patches.sh index 34ecd51..e2aa356 100755 --- a/playbooks/roles/mail/templates/volumes/data/dms/config/user-patches.sh +++ b/playbooks/roles/mail/templates/volumes/data/dms/config/user-patches.sh @@ -1,5 +1,9 @@ #!/bin/bash +# fix perms for potential rollbacks +chown -R 5000:5000 /var/mail/* +chown -R 100:102 /var/mail-state/lib-postfix + postconf -e 'smtpd_sasl_type = dovecot' postconf -e 'smtpd_sasl_path = /dev/shm/sasl-auth.sock' postconf -e 'smtpd_sasl_auth_enable = yes' @@ -55,5 +59,3 @@ userdb { postconf -e 'virtual_uid_maps = static:5000' postconf -e 'virtual_gid_maps = static:5000' postconf -e 'virtual_minimum_uid = 5000' - -chown -R 5000:5000 /var/mail/* |