Skip to content

Instantly share code, notes, and snippets.

@stefanschmidt
Last active May 13, 2021 12:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stefanschmidt/e839beda428cec3ff359b8170ee01d54 to your computer and use it in GitHub Desktop.
Save stefanschmidt/e839beda428cec3ff359b8170ee01d54 to your computer and use it in GitHub Desktop.
Dovecot command collection
# reload configuration
doveadm reload
# restart
service dovecot restart
# test authentication
doveadm auth test user@domain.com
# test login with passdb and userdb lookup
doveadm auth login user@domain.com
# show value of setting
doveconf some_option_name
# show default value of setting
doveconf -d some_option_name
# show all settings that differ from default
doveconf -n
# list services listening on tcp port
# defaults: imap (143), imaps (993)
netstat -ltn
# list all configuration files
find /etc/dovecot -type f | sort
# list split configuration files
find /etc/dovecot/conf.d -type f | sort
# compare configuration files
diff -rq /etc/dovecot /home/user/dovecot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment