Submitted by Locutus on Fri, 05/20/2011 - 06:28
Title says it all. :) While renaming the administration user of a domain is no problem, I could not find where to rename the administration group (which upon creation is set to the administration username, or the "custom group" if entered).
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Fri, 05/20/2011 - 12:09 Comment #1
You can change the group on the "Change Domain Name" page - if you select a different username and also set "Change mailbox name suffix?" to "Automatically chosen", the group will be updated to match the username.
Submitted by Locutus on Sat, 05/21/2011 - 03:45 Comment #2
Yep that worked, thanks Jamie!
You may feel free to consider this a feature request then, to change that term "mailbox name suffix" to something that better indicates that the group name is involved.
Also, I think there is some inconsistency involved there. The mailbox suffix of existing mailbox names is not changed when I enter "Automatically chosen" or a custom name there. All that happens is that the administrative group is modified - set to the admin username (even if I enter a custom text).
Can you figure this one out quickly, or should I open up a bug report with more detail about my test?
Submitted by JamieCameron on Sat, 05/21/2011 - 23:48 Comment #3
Thanks - I'll fix all those up in the 3.86 release.
Submitted by Issues on Sun, 06/05/2011 - 11:26 Comment #4
Automatically closed -- issue fixed for 2 weeks with no activity.
Submitted by Locutus on Sun, 06/05/2011 - 16:56 Comment #5
Some follow-up:
The text line was changed correctly.
The other issue though is still active -- at least if I did not understand something incorrectly there:
The mailbox suffix of existing mailbox names is not changed when I enter "Automatically chosen" or a custom name there.
Nor is the suffix of new email accounts that I create after using the "Rename" feature changed. It is still the same suffix as before.
Some details... I have this configured:
The email suffix before the Rename therefore is "example.com", resulting in a username "user1@example.com".
I then rename the group/suffix to "example". The existing user "user1" is not changed, and still has username "user1@example.com". Creating a new user also yields "user2@example.com" as username instead of the expected "user2@example".
Submitted by JamieCameron on Sun, 06/05/2011 - 13:24 Comment #6
I think this is actually expected - if mailbox usernames are in username@domain.com format, the suffix isn't actually used at all, and so changing it won't rename existing users. The rules for this are so complex that it is hard for me to remember the intended behavior in Virtualmin, even though I wrote it :-)
Is your aim here to move away from user@domain.com mailbox names to user@domain ? The latter format doesn't really make sense ..
Submitted by Locutus on Sun, 06/05/2011 - 17:00 Comment #7
LOL, well may I suggest to re-inspect those rules and make some document about it? How are your users supposed to correctly apply a feasible configuration if the coders even have no clue? ;-)
E.g.: What exactly is the "suffix" in that regard? In what cases is it used? How do I set it initially? Is it the "Format for usernames that include domain" option in the template?
As for "formats not making sense": you're quite right, and nope, I wasn't going for any "aim" with that "domain.com -> domain" thing, that was just a test and example to try out the renaming feature. :)
Submitted by JamieCameron on Mon, 06/06/2011 - 17:36 Comment #8
So the suffix only applies when you have a domain like
example.com
and users are named likebob-example
.. in this caseexample
is the suffix.If you were to rename this domain to
foo.com
, the suffix would change tofoo
and all users are renamed depending on the "Rename mail / FTP users too?" option on the rename form.In the case where usernames are in name@domain.com format, they will only be renamed if the domain name changes. I will update the fields / help on that page to make this clearer..
Submitted by Locutus on Mon, 06/06/2011 - 18:19 Comment #9
Okidoki! Got it, and this matches with some tests I did earlier today.