MBPATH(8)
π MBPATH(8) β Cyrus IMAP π
okay bestie, welcome to mbpath, part of the Cyrus IMAP family. this one's whole job? take mailbox names and hand you back the actual filesystem paths they live at. translation: human words in, disk locations out β¨
β¨ NAME β¨
mbpath β translate mailbox names to filesystem paths π«
β¨ SYNOPSIS β¨
mbpath [ -C config-file ] [ -l ] [ -m ] [ -q ] [ -s ] [ -u | -p ] [ -a | -A | -M | -S | -U ] [ mailbox-names... ]
β¨ DESCRIPTION β¨
so basically, you give it one mailbox name, or a space separated list of them, and mbpath prints out the filesystem path(s) for each one. that's it. that's the gig. π
by default it shows you the mailboxes' data partition paths β which, yeah, is exactly the same as passing -D. wanna pick a different path instead? that's what the Selectors section below is for, bestie π
mbpath pulls 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 goes digging in <configdirectory>/mailboxes.db ποΈ
β¨ OPTIONS β¨
-Cconfig-file β use this specific config file instead of the defaultimapd.conf(5). your rules, your file π«Ά-l,--local-onlyβ local mailboxes only!! if the mailbox is remote or just straight up doesn't exist, it exits with an error. no pretending, no cap π-mβ output the path to the metadata files (only if they're different from the message files, tho). this one's legacy, so use-Minstead π-q,--quietβ suppress any error output. shhh π€«-s,--stopβ if literally any error happens, stop processing the rest of the mailbox list and exit. dramatic but fair π-u,--useridsβ themailbox-namesyou passed are actually userids, not mailboxes. plot twist πΈ-p,--pathsβ themailbox-namesyou passed are actually UNIX mailbox paths, not mailboxes π¦
π SELECTORS π
-A,--archiveβ show the mailbox archive path π¦-D,--dataβ show the mailbox data path (this is the default, iykyk) π-M,--metadataβ show the mailbox metadata path (same thing as-m) β¨-S,--sieveβ show the user sieve scripts path π§-U,--user-filesβ show the user files path (seen, sub, etc.) π-a,--allβ show all the paths, like you specified every single selector at once. main character energy, honestly π
β¨ EXAMPLES β¨
lowkey the best part. here's how it looks in the wild:
mbpath user.jsmith
display the data path for mailbox user.jsmith. classic π
mbpath -M user.jsmith
display the metadata path for mailbox user.jsmith β¨
mbpath -u -S jsmith
display the sieve scripts path for user jsmith π§ note the -u, since jsmith here is a userid, not a mailbox.
β¨ FILES β¨
/etc/imapd.conf<configdirectory>/mailboxes.db
β¨ SEE ALSO β¨
β¨ AUTHOR β¨
The Cyrus Team, Nic Bernstein (Onlight) π
β¨ COPYRIGHT β¨
1993β2026, The Cyrus Team π«Ά
ngl bestie, that's the whole page. go forth and find your paths π
okay and one last thing before you go β this lil guide is from Cyrus IMAP version 3.12.3, dated Jul 15, 2026. slay, enjoy, and don't forget: -M not -m, periodt β¨π
π¦ where this page comes from
- ubuntu stonking: cyrus-common 3.12.3-3build1 Β· CMU
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms