MBEXAMINE(8)

πŸ’– MBEXAMINE β€” like, the Cyrus IMAP mailbox detective πŸ’–

okay so bestie, welcome to mbexamine, part of the Cyrus IMAP docs, section 8 of the manual (the sysadmin-y one, you know the vibe). This is the tool you reach for when you wanna peek inside a cyrus-format mailbox and see what's actually going on in there. πŸ”βœ¨


✨ SYNOPSIS ✨

mbexamine [ -C config-file ] [ -u uid ] mailbox...
mbexamine [ -C config-file ] [ -s seqnum] mailbox...
mbexamine [ -C config-file ] -q mailbox...
mbexamine [ -C config-file ] -c mailbox...

🌸 DESCRIPTION 🌸

So what does mbexamine actually do? It opens up the header, index, and cache files of a cyrus-format mailbox and dumps everything it finds in there out for you to look at. It's giving open-book exam, honestly. πŸ“–

It can also narrow its output down to just one specific uid or one specific sequence number, using the -s and -u switches. So if you don't wanna read the whole novel, you can just read one page. πŸ’…

Config-wise, mbexamine reads its configuration options out of the imapd.conf(5) file β€” unless you tell it otherwise with -C. And to actually find the mailbox on disk, it uses <configdirectory>/mailboxes.db. πŸ—‚οΈ


πŸŽ€ OPTIONS πŸŽ€

  • -C config-file β€” hey bestie use this config file instead of the default imapd.conf(5), mwah πŸ’‹
  • -u uid, `--uid=uid β€” dump info for the given uid and literally nothing else. one (1) message, that's the assignment. 🎯
  • -s seqnum, `--seq=seqnum β€” same energy but for a sequence number: dump info for the given seqnum only. πŸ”’
  • -q, --check-quota β€” this one compares the quota usage in cyrus.index against the actual message file sizes, then reports any differences it finds. And listen β€” if there ARE differences, the mailbox SHOULD be reconstructed. That's not a suggestion, that's a vibe check that failed. 😭
  • -c, --check-message-files β€” compares the records in cyrus.index to the actual message files and reports any differences it sees. This one is your bestie when messages files got manipulated by hand and/or restored incorrectly β€” it'll sniff out the drama. πŸ•΅οΈβ€β™€οΈ

πŸ”₯ EXAMPLES πŸ”₯

mbexamine user.jsmith

Examine the mailbox hierarchy rooted at user.jsmith. Just a lil look around, no big deal. 🌈

mbexamine -u 00000004 user.jsmith

Examine the mailbox hierarchy rooted at user.jsmith while hunting for messages with UID = 00000004. you have one job and you're doing it. πŸŽ€

mbexamine -q user.jsmith

Examine the mailbox hierarchy rooted at user.jsmith and check the quotas while you're at it. multi-tasking queen πŸ‘‘

mbexamine -c user.jsmith

Examine the mailbox hierarchy rooted at user.jsmith, comparing the index records to the actual message files sitting in the mailbox directory. receipts vs reality, let's see if they match πŸ’€


πŸ¦‹ FILES πŸ¦‹

  • /etc/imapd.conf
  • <configdirectory>/mailboxes.db

(the two places this icon gets its info from, no cap)


πŸ’œ SEE ALSO πŸ’œ

go read that one too, iykyk 🫢


πŸ‘‘ AUTHOR πŸ‘‘

The Cyrus Team, Nic Bernstein (Onlight). absolute legends, fr fr. πŸ’–


1993–2026, The Cyrus Team


okay that's the whole page, you ate that periodt πŸ’…βœ¨

This was version 3.12.3, dated Jul 15, 2026 β€” the Cyrus IMAP era, and MBEXAMINE(8) said goodbye. go forth and examine those mailboxes bestie, ily πŸŽ€πŸ¦‹
πŸ“¦ where this page comes from