-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Don't change owners in /var/mail recursively #2256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
9b9cf92
2c33b64
7cb3fda
361af09
f41a4d5
9f9f47e
f58cac2
0a9696a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,6 +51,8 @@ function setup_file() { | |
| -e DOVECOT_TLS=no \ | ||
| -e DOVECOT_PASS_FILTER="(&(objectClass=PostfixBookMailAccount)(uniqueIdentifier=%n))" \ | ||
| -e DOVECOT_USER_FILTER="(&(objectClass=PostfixBookMailAccount)(uniqueIdentifier=%n))" \ | ||
| -e DOVECOT_USER_ATTRS="=uid=%{ldap:UID},=gid=5000,=home=/var/mail/%Ln,=mail=maildir:~/Maildir" \ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think that by adding Maildir here, the path to the mail folder changed to Edit: /var/mail/%Ln also does not consider the domain name actually, so it should give
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you for contributing in this, @Murazaki! Something still missing apparently, could you check it and commit the required changes in your opinion? I have been working on another important issue in the last few days, maybe we can close this permission issue also if we work on this together. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi Mohammed. I tried here but couldn't finish either. There might be a file permission issue: |
||
| -e DOVECOT_PASS_ATTRS="UID=user,userPassword=password" \ | ||
| -e REPORT_RECIPIENT=1 \ | ||
| -e ENABLE_SASLAUTHD=1 \ | ||
| -e SASLAUTHD_MECHANISMS=ldap \ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This appears to have been added to reduce startup overhead of redundantly applying the permissions to contents of multiple GB in size.
Related, this code snippet has been copied into
check-for-changes.sh, which will also applychown -R 5000:5000, as identified here.You will want to apply your changes to this too:
docker-mailserver/target/scripts/check-for-changes.sh
Lines 217 to 220 in 34ba3c2