How to enable Dovecot debug logging?

Follow

Comments

3 comments

  • Avatar
    Neeraj Kumar (Edited )

    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?

  • Avatar
    Nikita Nikushkin (Edited )

    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

  • Avatar
    Ivan Postnikov (Edited )

    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.

Have more questions? Submit a request