Skip to content

Commit fd255f1

Browse files
authored
Merge pull request #49 from devilbox/postfix-user-perm-on-windows
Mitigate postfix maildir permissions for Windows
2 parents 53cc3c5 + e285134 commit fd255f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfiles/prod/data/docker-entrypoint.d/31-postfix.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ set_postfix() {
6969
run "chown ${username}:${groupname} /var/mail" "${debug}"
7070
run "chown ${username}:${groupname} /var/mail/${username}" "${debug}"
7171

72+
# warning: specify "strict_mailbox_ownership = no" to ignore mailbox ownership mismatch
73+
run "postconf -e 'strict_mailbox_ownership=no'" "${debug}"
74+
7275
# Postfix configuration
7376
run "postconf -e 'inet_protocols=ipv4'" "${debug}"
7477
run "postconf -e 'virtual_alias_maps=pcre:/etc/postfix/virtual'" "${debug}"

0 commit comments

Comments
 (0)