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
Dovecot: make home dir distinct from mail dir #3335
Conversation
I tried changing the mail dir, but this is a _very_ disruptive change, so I took approach 3 on <https://doc.dovecot.org/configuration_manual/home_directories_for_virtual_users/>, whereby the home directory is now inside the mail directory. The MDBOX/SDBOX formats are not touched by this change. The change itself could be considered breaking though.
Not sure if that's required? The docs seem to imply that it's a non-issue for them, but nothing about having a separate location for the user home like other mailbox types.
Presumably this will be a problem for users unaffected as separating out the content for N users to the new home subdir may not be straight-forward? I'm unable to investigate if that is a possibility to advise further. It may warrant supporting a way to opt-in to keeping the current home location, but I leave that decision up to you. |
I guess this is because SDBOX/MDBOX seem to already use different directories for that by default. When looking at the tests, there is the "
I'm not sure I understand. Those that use MDBOX/SDBOX already use a different directory structure altogether. What is important is to get everyone in-line when the switch to DMS >= v13.0.0 (i.e. everyone who uses
I'd like to avoid that, due to what I just said (above). I don't want to maintain partitions of users with one home dir, and the other partition with another home dir.. |
It's not completely clear to me. At the moment, Is it fine to just use the new configuration with home/mail dirs separated? Or is there some kind of data migration needed? This is how a directory looks at the moment on my system:
What files will be in |
At the moment, this is primarily about Sieve user files. From what I can see, nothing from your directory @casperklein is relevant when it comes to the home dir.
AFAIK it actually is. This is mainly due to the reason the mail dir did not change, only the home dir location did. Here is an excerpt from the Dovecot docs:
|
Co-authored-by: Casper <casperklein@users.noreply.github.com>
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.
Another trailing slash.. otherwise ready to merge.
Co-authored-by: Casper <casperklein@users.noreply.github.com>
I will merge this and then update my system to check whether everything is fine. |
So just to be perfectly clear now that 13.0.0 is released: unless I have fiddled with Dovecot settings like a madman, I won’t have to manually touch anything even though this is listed as a breaking change in the release notes? |
After 13.0.0 was pushed as latest, at least for me - all Sieve scripts stopped working, and managesieve was showing none of them. Had to manually move all scripts from |
I will make sure to mention this in the release notes; sorry for not making this more clear in Update: I edited the release notes; now they contain this information :) |
Description
Funnily enough, strictly speaking this is not actually a breaking change. The Sieve scripts are already moved by us from
/tmp/docker-mailserver
to the correct location on startup, and the same goes for the Dovecot userdb file. But that is irrelevant, as the next version we are going to release is a major.. I woudl definitely mention it separately on the release page and in the changelog.I consider this PR as high priority, as <https://doc.dovecot.org/configuration_manual/home_directories_for_virtual_users/ points out: "Home directory shouldn’t be the same as mail directory with mbox or Maildir formats (but with dbox/obox it’s fine). It’s possible to do that, but you might run into trouble with it sooner or later."
I took care that mdbox/sdbox formats are untouched.
Fixes #3296
Type of change
Checklist:
docs/
)