iredmail-doc/zh_CN/troubleshooting/debug.dovecot.md

28 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 开启Dovecot服务的调试模式
> 不知道Dovecot的配置文件在哪个目录请查阅这个教程
> [iRedMail主要组件配置文件和日志文件存放目录](file.locations.html#dovecot).
要开启Dovecot服务的调试模式您需要对`dovecot.conf`配置文件做如下更改:
```
mail_debug = yes
```
重启Dovecot服务。
如果您需要开启经授权验证后才能查阅调试日志的功能请按下方所示更改配置文件并重启Dovecot服务。
```
auth_verbose = yes
auth_debug = yes
auth_debug_passwords = yes
auth_verbose_passwords = yes
```
当您在重启Dovecot服务时看到很多错误信息比如`dovecot fails, spawning too quickly`这可能是由于Dovecot配置文件中的某些错误导致的。此时请以命令行的形式手动重启Dovecot服务在此模式下Dovecot会列出重启过程中遇到的所有错误信息您应当根据这些信息修改配置文件并重启Dovecot服务
```
# dovecot -c /etc/dovecot/dovecot.conf
```