Summarize messages, unseen mail, and size for every mailbox
Build a paste-ready command, then review its compatibility and effects before running it.
doveadm mailbox status -u <dovecot-user> 'messages unseen vsize' '*'Complete required fields to copy the generated command.
read-onlyrequires privileges Compatibility
LinuxVerified for Linux using posix, bash, zsh syntax.
Operational knowledgereview due 2027-01-19
Requirementsdoveadmdoveadm must be installed and available on PATH.Elevated accessReview the exact scope before using an elevated account.
Version supportdoveadm Current supported releasesVerified for linux using posix, bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signalsINBOX messages=142 unseen=3 vsize=9823142Representative successful output; values vary with the selected target and system state.
Known errorsdoveadm: command not founddoveadm is missing or is not available on PATH.Permission deniedThe current identity does not have the required access.
Verifydoveadm mailbox status -u {{user}} 'messages unseen vsize' '*'The output matches the expected target and exits without an error.Rollback noteNo universal automatic rollback is available. Capture the current state and use the tool-specific recovery procedure before applying changes.
Command breakdown
01doveadmCommandRuns the doveadm stage of this one-liner.
02mailboxArgumentPasses mailbox to doveadm.
03statusArgumentPasses status to doveadm.
04-uOptionConfigures doveadm with the -u option.
05<dovecot-user>ParameterA value supplied in the Fill parameters section.
06'messages unseen vsize'ArgumentPasses 'messages unseen vsize' to doveadm.
07'*'ArgumentPasses '*' to doveadm.
Example input
doveadm mailbox status -u alice@example.com 'messages unseen vsize' '*'
Example output
INBOX messages=142 unseen=3 vsize=9823142
Archive messages=804 unseen=0 vsize=68210433
Sent messages=215 unseen=0 vsize=17840912
Illustrative output — exact values vary by system and data.
Official sources
Related commands