doveadm-instance1
Manage the list of running dovecot instances
Usage
doveadm [GLOBAL
OPTIONS]
instance
list
[-c]
[name]
doveadm [GLOBAL
OPTIONS]
instance
remove
name
Overview
The doveadm instance commands are used to manage the list of Dovecot instances running on the server. In most installations there is only one Dovecot instance, but in some cases is may be useful to have more (e.g. running proxy and backend in the same server).
Instances are added to the list automatically when Dovecot is started. Each instance is uniquely identified by its base_dir setting. Instances can be named by setting instance_name in each instance's dovecot.conf. When an instance is named, it can be accessed easily by giving -i instance_name command line parameter for Dovecot binaries (e.g. doveadm).
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.
-
-f formatter -
Specifies the formatter for formatting the output. Supported formatters are:
flowprints each line with key=value pairs.
jsonprints a JSON array of JSON objects.
pagerprints each key: value pair on its own line and separates records with form feed character (^L).
tabprints a table header followed by tab separated value lines.
tableprints a table header followed by adjusted value lines.
Arguments
name
The value of an instance's instance_name setting. Each instance can also be uniquely identified by its base_dir setting.
Commands
instance list
doveadm [GLOBAL OPTIONS] instance list [-c] [name]
This command lists the seen Dovecot instances.
-
-c -
Output the config path instead of instance information.
instance remove
doveadm [GLOBAL OPTIONS] instance remove name
This command removes the specified instance.
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).