kate Is it possible to rename a mailbox, through the admin gui ? For example.. if someone wants to change their email address but keep their existing email. User foo@example.com becomes known as “bar@example.com” , and doesn’t want to use the “foo@example.com” login or email address any longer, but does want keep their email etc..
diekuh No. Not yet at least. A lot of stuff is involved. SOGo, ACLs, Sieve etc. I will probably create a script for it to be run as helper.
Cowboys_and_Angels Hi, what’s the status of renaming a mailbox? Common use case: marriage with name change ;-) A description what has to be done would be enough.
dPAutomation Hi, is there any script for renaming a mailbox as discussed here? I have to rename several mailboxes and it will be nice to have a solution.
kate MrScreemi You can move the directories within the dovecot vmail container (this keeps the email) . create a new user in the mailcow interface (or use the api) then get dovecot to recalculate the quota using doveadm mv /var/vmail/example.com/foo /var/vmail/example.net/bar Create user bar@example.net in gui interface doveadm quota recalc -u bar@example.net
kate killmasta93 if you create a user first, there is a chance that they will receive mail before the you do the move. In this case dovecot will have already created the mailbox. This means the move will not work and you will need to do a merge instead (say using imapsync).
killmasta93 kate oh gotcha, going to give it a try and postback as for the contacts i would manually export on sogo web?