doveadm-dump1
Dump the content of dovecot's binary mailbox index/log
Usage
doveadm [GLOBAL
OPTIONS]
dump
[-t
type]
path
[type-specific
args]
Overview
Dovecot uses several binary index and log files in order to improve performance for accessing mails. For some mailbox formats, such as sdbox and mdbox, the index files are part of the format itself. For details about index files, see [[link,design_index_format_main].
doveadm dump is used to show the contents of those mailbox index/log files, in human readable format. This is mainly useful for Dovecot developers when debugging some problem.
Options
Global doveadm(1) options:
-
-D -
Enables verbosity and debug messages.
-
-O -
Do not read any config file, just use defaults. The
dovecot_storage_versionsetting defaults to the latest version, but can be overridden with-o.
-
-k -
Preserve entire environment for doveadm, not just
import_environmentsetting.
-
-v -
Enables verbosity, including progress counter.
-
-i instance-name -
If using multiple Dovecot instances, choose the config file based on this instance name.
See
instance_namesetting for more information.
-
-c config-file -
Read configuration from the given config-file. By default it first reads config socket, and then falls back to /etc/dovecot/dovecot.conf. You can also point this to config socket of some instance running compatible version.
-
-o setting=value -
Overrides the configuration setting from /etc/dovecot/dovecot.conf and from the userdb with the given value. In order to override multiple settings, the
-ooption may be specified multiple times.
Options
-
-t type -
the file type of the file to be dumped. If the type was omitted, doveadm(1) tries to detect the type of path.
type can be:
dbox: => m.n (sdbox or mdbox mailbox file)fts-expunge-log: Dump the list of expunged mails in dovecot-expunges.log.fts-flatcurve: Dump the keywords indexed in fts-flatcurve indexes directory and their frequencies.imap-compress: Decompress an IMAP traffic log, which contains data compressed using the IMAP COMPRESSION extension.dcrypt-file: Dump metadata of a dcrypt encrypted file.type-specific args
private_key=/path : to decrypt file contents.password=secret : to decrypt private key.dcrypt-key: Dump metadata of a dcrypt key.type-specific args
private_key=/pathto decrypt file contents.
password=secretto decrypt private key.
dump=pem|dovecot|jwkto specify format to dump in.
index: => dovecot.index, dovecot.map.indextype-specific args
uid=number : Dump only message with UIDlog: => dovecot.index.log, dovecot.map.index.logmailboxlog: => dovecot.mailbox.logthread: => dovecot.index.thread
Arguments
path
The path to the corresponding dbox storage, index or log file. If only a directory is specified, doveadm tries to detect the type of files under it and dumps them.
Examples
Look at the contents of a mailbox's index:
doveadm dump ~/Maildir/.work/
Releases
8 releases since Debian 7 (Wheezy); the text changed 5 times.
-O since Debian 13 (Trixie);
-c since Debian 13 (Trixie);
-i since Debian 13 (Trixie);
-k since Debian 13 (Trixie);
-o since Debian 9 (Stretch).