URL: https://www.opennet.ru/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID1
Нить номер: 76673
[ Назад ]

Исходное сообщение
"renamemailbox"

Отправлено romeo , 09-Окт-07 17:22 
Подскажите, кто сталкивался как переименовать ящик юзера не удаляя.

как не пробую не получается :(
уже перепробывал кажись все варианты
вот что делал и что выдавало:

localhost> renamemailbox
usage: renamemailbox [--partition name] oldname newname [partition]
localhost> renamemailbox --partition user uzver uzverrrr
renamemailbox: Mailbox does not exist
localhost> renamemailbox --partition user.uzver user.uzverrrr
usage: renamemailbox [--partition name] oldname newname [partition]
localhost> renamemailbox --partition user user.uzver user.uzverrrr
renamemailbox: Operation is not supported on mailbox
localhost> renamemailbox --partition user uzver  user.uzverrrr
renamemailbox: Mailbox does not exist
localhost> sam user.uzver root c
localhost> renamemailbox --partition user uzver uzverrrr
renamemailbox: Mailbox does not exist

вообще извращался как мог не помогает :(((


Содержание

Сообщения в этом обсуждении
"renamemailbox"
Отправлено spirit_ , 09-Окт-07 18:11 
>[оверквотинг удален]
>usage: renamemailbox [--partition name] oldname newname [partition]
>localhost> renamemailbox --partition user user.uzver user.uzverrrr
>renamemailbox: Operation is not supported on mailbox
>localhost> renamemailbox --partition user uzver  user.uzverrrr
>renamemailbox: Mailbox does not exist
>localhost> sam user.uzver root c
>localhost> renamemailbox --partition user uzver uzverrrr
>renamemailbox: Mailbox does not exist
>
>вообще извращался как мог не помогает :(((

Попробовал у себя, переименовать не удалось :(
Вот такая ошибка у меня:  
rename user.test user.test1
renamemailbox: Operation is not supported on mailbox

возможно поможет пернос ящика: xfermailbox


"renamemailbox"
Отправлено romeo , 09-Окт-07 18:13 
если получится отпишись, а то я на продакшн серваке не особо хочу шаманить

"renamemailbox"
Отправлено spirit_ , 09-Окт-07 18:24 
>
>Попробовал у себя, переименовать не удалось :(
>Вот такая ошибка у меня:
>rename user.test user.test1
>renamemailbox: Operation is not supported on mailbox
>
>возможно поможет пернос ящика: xfermailbox

Не заработало, аналогичная ошибка:   Operation is not supported on mailbox
Тогда нужно использовать утилиту типа imapsync.



"renamemailbox"
Отправлено volk , 16-Окт-07 15:35 
>[оверквотинг удален]
>>Попробовал у себя, переименовать не удалось :(
>>Вот такая ошибка у меня:
>>rename user.test user.test1
>>renamemailbox: Operation is not supported on mailbox
>>
>>возможно поможет пернос ящика: xfermailbox
>
>Не заработало, аналогичная ошибка:   Operation is not supported on mailbox
>
>Тогда нужно использовать утилиту типа imapsync.

http://www.oreilly.de/catalog/mimap/chapter/ch09.html
Top-level mailboxes cannot be renamed because of a Cyrus architectural issue. Renaming a top-level mailbox requires changes in other parts of the system, such as the mailboxes file, the quota subsystem, the mailbox subscription database, and the names of all mailboxes below the top level in the hierarchy. This can be a problem--many sites allow users to change their account names at some time after the account is initially created. It is also important to note that renamemailbox does not hierarchically rename mailboxes--it only renames the mailbox that it is given as an argument. All other mailboxes below that mailbox in the hierarchy are left untouched. CMU will provide a hierarchical renamemailbox command in Cyrus 2.0, but it does not yet appear in any release up through Version 1.6.22. Until cyradm supports hierarchical renaming, it will be of limited use on its own. Fortunately, as with many limitations, there is a usually a workaround. The workaround, which is implemented as a Tcl script in Example 9-2 in the next section of this chapter


"renamemailbox"
Отправлено romeo , 16-Окт-07 16:06 

>http://www.oreilly.de/catalog/mimap/chapter/ch09.html

сенкс -- а главного я и не заметил :)


"renamemailbox"
Отправлено EZV , 04-Ноя-07 22:58 
Add
       allowusermoves: 0
to /etc/imapd.conf

Then restart your imapd and in cyradm:

renm user.olduser user.newuser

and that does is all. You need to make sure thet olduser is not logged in when your are moving his mailbox.