Closed sknight80 closed 3 years ago
many thanks for this @sknight80
@diroots I have to test my branch then I will submit this for review
@sknight80 are you sure it was on discord? Cannot find any record of it ;(
@AndrewSav I updated the description with the link. ;)
I had a look at this, was trying to figure out if there is an "automatic" way to avoid the delay without the needs to specify the option, but could not come up with one, otherwise looks good. Default set - check, documentation updated check. I was a bit unsure if the default should be in run.sh or setup.sh but it looks like we have them (for other vars) in both, so I guess does not matter?
I could think only for sending that one line into the background and logging back when it is done. We could have a couple of downtime minutes to store new mails on the read-only mailboxes until the command finished it. But honestly, when you are using the image and create a new mailbox via postfix, it should set up the right access level. So I don't think we should run the find
command when a new container is created.
Let us merge it and iterate on it later.
hello @sknight80
i saw u did push this change to master, good to know. i also saw it was in the unreleased features, with some other. that means not yet available on docker hub.
Do you know when u plan to do a new release with this feature (and the others listed) ? still some work before it goes live?
Let me sync with @AndrewSav and @SaraSmiseth when do we want to release a new version
I think its fine to release a new version.
What rules do we follow on when to release new versions?
I think this one: https://github.com/mailserver2/mailserver/blob/master/VERSIONING.md
Well it does not mention when a new release will be created. What do you think about this: The person who merged something into the master branch should create a new release after that?
Sounds good to me.
On Mon, Oct 26, 2020 at 12:22 PM Sara Aimée Smiseth < notifications@github.com> wrote:
Well it does not mention when a new release will be created. What do you think about this: The person who merged something into the master branch should create a new release after that?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mailserver2/mailserver/pull/25#issuecomment-716661047, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABB5S2BE2JOZAJN2FXL5QWDSMWO2TANCNFSM4SLZ7YIA .
Note that not all changes require a release. This one does though. So @sknight80, are you going to be doing this, in this case?
Yes, today I will do it.
I pushed the new version to the docker hub and added a new tag and release to GitHub. Going to create a new PR for updating the changelog.
Description
I added a new configuration option to avoid long restart (boot) when you have lots of mailboxes with the right ownership setup.
Fixes # (issue)
What is the current behavior (you can also link to an open issue here) ?
diroots
from the Discord channel mentioned that when he restarted the mail server, it took lots of time to boot up due to the high volume of mailboxes and thefind
command that set the ownership for a given folder.What is the new behavior (if this is a feature change)? When we turn on the
DISABLE_VHOSTS_OWNERSHIP_SET
environment variable, thesetup.sh
will skip thefind /var/mail/vhosts
line the image will boot up faster.Type of change
Please delete options that are not relevant.
Status
Todo List
How has this been tested?
Describe the tests that you ran to verify your changes. Provide instructions so we can reproduce, and please also list any relevant details of your test configuration.
[INFO] VHOSTS directories permission set is disabled.
[INFO] VHOSTS directories permission set is disabled.