$linuxjunkies
>

dovecot(1)

Dovecot is an open-source IMAP and POP3 mail server that stores and retrieves emails for mail clients.

UbuntuDebianFedoraArch

Synopsis

dovecot [OPTION]... [command]

Description

Dovecot is a lightweight and highly configurable mail server that implements IMAP4 and POP3 protocols. It handles user authentication, mailbox storage, and email retrieval for mail clients like Thunderbird, Outlook, and webmail applications. Dovecot is known for its performance, security features, and SQL/LDAP integration capabilities.

The dovecot command manages the mail server daemon, including starting, stopping, reloading configuration, and checking status. Configuration is primarily handled through the main dovecot.conf file and included config directories.

Common options

FlagWhat it does
startStart the Dovecot mail server daemon
stopStop the running Dovecot daemon
reloadReload configuration without stopping the server
restartStop and then start the Dovecot daemon
statusShow the status of the Dovecot daemon
-c <config>Use an alternate configuration file
-FRun in foreground (do not daemonize)
--versionDisplay Dovecot version and compile options
configShow parsed configuration in output format
log-openOpen log files and stay in foreground for testing

Examples

Start the Dovecot mail server daemon in the background

dovecot start

Check if Dovecot is running and display its status

dovecot status

Reload the dovecot.conf configuration without disconnecting active clients

dovecot reload

Run Dovecot in foreground mode (useful for debugging)

dovecot -F

Display the parsed configuration settings that Dovecot is using

dovecot config

Start Dovecot using an alternate configuration file

dovecot -c /etc/dovecot/custom.conf start

Display installed Dovecot version and enabled features

dovecot --version

Stop and restart the Dovecot daemon (disconnects all clients)

dovecot restart

Related commands