$linuxjunkies
>

doveconf(1)

Display and validate Dovecot configuration settings.

UbuntuDebianFedoraArch

Synopsis

doveconf [OPTION]... [SETTING]...

Description

doveconf displays the effective Dovecot configuration by reading and parsing configuration files, then outputting settings in a normalized format. It can validate configuration syntax, expand variables, and show default values without requiring Dovecot to be running.

When no settings are specified, all configuration is displayed. You can query specific settings by name, use wildcards, or filter by protocol. This is useful for debugging configuration issues, verifying settings before restarting Dovecot, and scripting configuration queries.

Common options

FlagWhat it does
-nShow only non-default settings that differ from built-in defaults
-aShow all settings including defaults (default behavior without -n)
-c <config-file>Use an alternative configuration file instead of default /etc/dovecot/dovecot.conf
-sSeparate output sections with a single blank line
-xExpand variables and show actual values (e.g., %h becomes /home/user)
-tTest configuration for syntax errors without displaying settings
-p <protocol>Show configuration for specific protocol (imap, pop3, lmtp, sieve, etc.)
-f <filter>Show only settings matching the filter pattern
-OShow configuration in output format suitable for reload

Examples

Display entire effective Dovecot configuration

doveconf

Show only non-default settings that have been customized

doveconf -n

Display the mail_location setting with variables expanded to actual paths

doveconf -x mail_location

Validate syntax of the configuration file without displaying output

doveconf -c /etc/dovecot/dovecot.conf -t

Show IMAP protocol-specific configuration for the imap service

doveconf -p imap service imap

Display all settings matching the auth* pattern (all auth-related settings)

doveconf -f 'auth*'

Show non-default SSL settings with variables expanded

doveconf -x -n | grep ssl

Display passdb (password database) configuration settings

doveconf passdb

Related commands