Plesk for Linux
kb: how-to
ABT: Group B
Applicable to:
- Plesk for Linux
Question
How to enable Dovecot debug logging?
Answer
- Log into the server via SSH
- Uncomment and configure the parameters in
/etc/dovecot/dovecot.conf
as below:CONFIG_TEXT: auth_verbose = yes
auth_verbose_passwords = no
auth_debug = yes
auth_debug_passwords = yes
mail_debug = yes
verbose_ssl = yes - Restart Dovecot service:
# service dovecot restart
Note: to disable the debug logging, revert the changes: comment out the configuration parameters and restart Dovecot.
Comments
3 comments
I am unable to locate the log file. It seems Dovecot is not creating the log file.
# doveadm log find
Debug: Not found
Info: Not found
Warning: Not found
Error: Not found
Fatal: Not found
Do you have idea what is wrong?
Most probably the issue is related to the stopped "rsyslog" service:
# service rsyslog status
● rsyslog.service - System Logging Service
Loaded: loaded (/lib/systemd/system/rsyslog.service; enabled; vendor preset: enabled)
Active: inactive (dead)
Try to start it:
# service rsyslog start
and check the Dovecot logs one more time:
# doveadm log find
Hello @Neeraj,
According to the man page of "log find" command:
If dovecot logs its messages through syslogd and doveadm could not find any log files, you can specify the directory where your syslogd writes its log files.
Also, try manually look for file /var/log/dovecot.log or files at /var/log/dovecot/ directory as location may vary for different Linux distributions.
Please sign in to leave a comment.