diff options
author | Elizabeth Hunt <me@liz.coffee> | 2025-05-04 00:10:22 -0700 |
---|---|---|
committer | Elizabeth Hunt <me@liz.coffee> | 2025-05-04 00:35:51 -0700 |
commit | c3e9305bce9fd1aaf165779fb46570c683750e6f (patch) | |
tree | dcc01e3d35abd0647f7a053a00d9e3f1f91072d1 /playbooks/roles/mail/templates | |
parent | 7106b304324b3a7c4dc5fa25432f08041cbc41cb (diff) | |
download | infra-c3e9305bce9fd1aaf165779fb46570c683750e6f.tar.gz infra-c3e9305bce9fd1aaf165779fb46570c683750e6f.zip |
Tried to use docker ingress to solve x-real-ip on mail daemon but it didn't work for other ports
Diffstat (limited to 'playbooks/roles/mail/templates')
-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/* |