Mitigate postfix maildir permissions for Windows

This commit is contained in:
cytopia
2018-08-29 08:51:11 +02:00
parent 53cc3c5cc9
commit e285134ad3

View File

@@ -69,6 +69,9 @@ set_postfix() {
run "chown ${username}:${groupname} /var/mail" "${debug}"
run "chown ${username}:${groupname} /var/mail/${username}" "${debug}"
# warning: specify "strict_mailbox_ownership = no" to ignore mailbox ownership mismatch
run "postconf -e 'strict_mailbox_ownership=no'" "${debug}"
# Postfix configuration
run "postconf -e 'inet_protocols=ipv4'" "${debug}"
run "postconf -e 'virtual_alias_maps=pcre:/etc/postfix/virtual'" "${debug}"