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
Enhance cyradm to cover more useful sysadmin features #1764
Comments
This is a definitely interesting area for enhancement. The basic tool here is cyradm, and I think what we're really looking for is extending cyradm. |
I like the idea of extending the cyradm functionality, but here I was referring more to some changes that would not require any manual actions/scripting at all. Currently, we can instruct Cyrus to automatically create folders with: Then if the admin wants for some automatically created folders to have special-use flags (as per RFC6154), currently he/she should write scripts to assign the necessary flags. What could be an improvement in this area is to extend
Example: So upon creation of the specified folders, Cyrus would set the special-use flags to 4 of them as specified. |
Regarding special use flags, we have this in our config, and it's been there for years. I wonder if it came from the mailbox auto-create patches before they were integrated into Cyrus? Which makes me wonder if they still work. We have turned off new account creation on this system though, so I can't test easily.
|
@gdmalet, if I understand it correctly, XLIST was deprecated 2 years after it was introduced and its support was dropped in Cyrus 2.4 or 2.5. Before that it was quite a usable feature, dunno why it was dropped globally, though here Bron explains the reason for XLIST removal from Cyrus: https://lists.andrew.cmu.edu/pipermail/cyrus-devel/2013-April/002781.html. Please let me know if I missed any important detail. |
@anatoli26 Thanks for the update -- I wasn't aware of the history. I just wanted to make sure people were aware that some work had been done in this area in the past, in case the old code is useful.... |
So... it seems to me that maybe the best thing here is to take advantage of existing config... So... if you have xlist-(name): Folder and it gets autocreated, it will also get the special-use auto-added now, in 5a1a9b8 and on master (also with a Cassandane test) |
Oh that looks like the best approach, thanks Bron! |
Indeed you did :) Probably also add something to say that the naming to is to stay compatible with 2.4/2.5 configs, despite looking kinda bogus. |
I wonder if it's worth adding a less bogus synonym, "autocreate_specialuse-flag" maybe? Though looking at the implementation (loop over all overflow strings, skip ones that aren't /^xlist-/), maybe that'll get messy if we then need to also check for duplicates/precedence... |
This discussion was very helpful. What do you think ? |
Via email from Anatoli me@anatoli.ws
At FM you have everything automated for sure with your own customs scripts, but sysadmins with little experience with Cyrus or those that don't write scripts with ease would find some tasks difficult to accomplish, for others that's just an overhead/additional points of failure that could be avoided with small built-in automations.
The text was updated successfully, but these errors were encountered: