RELOCATE_BY_ID(8)
π RELOCATE_BY_ID(8) π
okay bestie, welcome to the Cyrus IMAP corner of the man pages, section 8 β this one's called relocate_by_id, and it's literally the glow-up your mailbox trees have been waiting for β¨
β¨ NAME β¨
relocate_by_id β Cyrus IMAP documentation, no cap π«Ά
Relocate mailbox trees by their mailbox ids. yes queen, by id, not by name. we're moving on up π
πΈ SYNOPSIS πΈ
relocate_by_id [ -C config-file ] [ -n ] [ -q ] [ -u ] [ mailbox-names... ]
that's the whole vibe right there, look at her go π
π¦ DESCRIPTION π¦
okay so. you hand relocate_by_id a mailbox name, or a whole space separated list of mailbox names (space separated, bestie, not commas, not vibes) β and it relocates the mailbox and its submailboxes into directory trees that are hashed by mailbox id instead of hashed by mailbox name. it's giving "we know exactly who you are, no need to sort by your name anymore" π₯
relocate_by_id reads its configuration options out of the imapd.conf(5) file β unless you tell it otherwise with -C. and to actually find the mailboxes on disk it uses <configdirectory>/mailboxes.db. it checks the database first, always, that's the whole main character move π
π OPTIONS π
-Cconfig-file β use the specified configuration file config-file instead of the defaultimapd.conf(5). you want a different config? say less π-n,--dry-runβ do NOT make any changes. just list which directories will be relocated. it's the window-shopping of Unix commands, we love a preview ποΈ-q,--quietβ run quietly. suppress any error output. shhh π€« some of us are in our silent era.-u,--useridsβ the specified mailbox-names are users, not mailboxes. user metadata directories will also be relocated. so if you pass a username, this is the flag that makes it mean what you think it means π
also remember the positional args: mailbox-names... β one name or a space separated list, and it does the mailbox plus all its submailboxes. no half-sends here, we relocate the whole family π«Ά
π EXAMPLES π
relocate_by_id -u jsmith
Relocate all mailbox and metadata directories for user jsmith.
that's it, that's the serve. one user, jsmith, everything of theirs gets moved β mailboxes and metadata directories. iconic πβ¨
π§ FILES π§
/etc/imapd.conf<configdirectory>/mailboxes.db
the config and the database, the two besties this command rolls with π
β SEE ALSO β
go read it, iykyk π
π AUTHOR π
The Cyrus Team, Ken Murchison (Fastmail) β absolute legends, we are obsessed π«Ά
π COPYRIGHT π
1993β2026, The Cyrus Team
and that's the page, babe π this was RELOCATE_BY_ID(8) from the Cyrus IMAP manual, version 3.12.4, dated Sep 09, 2026 β go relocate something responsibly, mwah ππ
π¦ where this page comes from
- fedora 44: cyrus-imapd 3.12.4-1.fc44 Β· BSD-Attribution-HPND-disclaimer
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms