Hi, recently I renamed a virtual server from old.tld to new.tld. When looking at the Edit Virtual Server form > Configurable settings I still see old.tld used as Mailbox name suffix.
I do want to change it to new.tld because I need to create old.tld as Server Alias to new.tld.
When trying I get the error:
Failed to create virtual server : The username prefix old.tld is already in use by new.tld
Yeah, that’s kind of bug-like, but there are good reasons it is the way it is (it’d be pretty much impossible to safely change it automatically, because so many things outside of Virtualmin’s control and domain of knowledge could rely on it–stuff like application configuration, etc., also, renaming databases in MySQL is deeply non-trivial–requiring a dump/restore, and downtime).
I’m bet it is. Sounds I better do it by deleting old.tld completely and create new.tld instead of rename old.tld to new.tld? That, by the way, would make the rename domain name feature more or less useless, wouldn’t it?
Anyway, I filed a bug report. If I could at least some advise where to change the Mailbox name suffix manually would be very helpful. Meanwhile I grep through my system
Looks like I got it fixed by editing the corresponding virtual server file in /etc/webmin/virtual-server/domains. The "prefix" value still contained old.tld.
Additional I had to add all Email address like xyz@new.tld to /etc/postfix/virtual like this:
xyz@new.tld xyz-new.tld
(I’m using the @ in email user names)
Running "postmap /etc/postfix/virtual" activated the email addresses.
I also deleted and recreated other alias servers of new.tld which existed for old.tld too.