On certain occasions enabling debug mode in Dovecot's mail server is necessary to find answers to indexes, authentication, and inbox issues. This how-to provides information on how to enable all of these debug contexts.
- Log in to the server via SSH as root.
- Open Dovecot's main configuration file, which is located in
/etc/dovecot/dovecot.conf, with your favorite text editor.
- Enable the following settings by uncommenting and configuring the following directives:
auth_verbose = yes auth_verbose_passwords = no auth_debug = yes auth_debug_passwords = yes mail_debug = yes verbose_ssl = yes
- Save the changes.
- Restart the Dovecot service by executing the following command:
Once the above steps have been performed, you will see debug entries in the
/var/log/maillog file like these:
Sep 2 12:07:57 cptest.local dovecot: auth: dict(email@example.com,198.51.100.225): Password mismatch (given password: REDACTED_NOPASS)
Sep 2 12:07:57 cptest.local dovecot: auth: Debug: dict(firstname.lastname@example.org,198.51.100.225): CRYPT(REDACTED_NOPASS) != 'REDACTED'