Topic: Empty dovecot logs
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.2 MARIADB edition.
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Ubuntu 20.04.1 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi guys, i installed iredmail latest version a weeks ago and dovecot logs are empty from the beginning, however logs in /var/log/syslog are correctly but i need this separate for better visualization. Tried deleting logs and restarting rsyslog but nothing.
I would appreciate if anyone could tell me what's wrong, Thanks in advance.
Here the configs:
# doveconf -n | grep log
deliver_log_format = from=%{from}, envelope_sender=%{from_envelope}, subject=%{subject}, msgid=%m, size=%{size}, delivery_time=%{delivery_time}ms, %$
lastlogin = mysql:/etc/dovecot/dovecot-last-login.conf
login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c %k session=<%{session}>
mail_plugins = quota mailbox_alias acl mail_log notify
last_login_dict = proxy::lastlogin
last_login_key = # hidden, use -P to show it
mail_log_events = delete undelete expunge copy mailbox_create mailbox_delete mailbox_rename
mail_log_fields = uid box msgid size from subject flags
service imap-login {
service managesieve-login {
service pop3-login {
syslog_facility = local5
mail_plugins = quota mailbox_alias acl mail_log notify sieve
mail_plugins = quota mailbox_alias acl mail_log notify sieve
mail_plugins = quota mailbox_alias acl mail_log notify imap_quota imap_acl last_login
mail_plugins = quota mailbox_alias acl mail_log notify last_login
# cat /etc/rsyslog.d/*dovecot*
# Debug
if $syslogfacility-text == 'local5' and ($msg contains ": Debug:") then -/var/log/dovecot/dovecot.log
& stop
# sieve and LMTP
if $syslogfacility-text == 'local5' and ($msg contains "lmtp(" or $msg contains "lda(") then -/var/log/dovecot/lda.log
& stop
# IMAP
if $syslogfacility-text == 'local5' and ($msg contains "imap(" or $msg contains "imap-login:") then -/var/log/dovecot/imap.log
& stop
# POP3
if $syslogfacility-text == 'local5' and ($msg contains "pop3(" or $msg contains "pop3-login:") then -/var/log/dovecot/pop3.log
& stop
# managesieve
if $syslogfacility-text == 'local5' and ($msg contains "managesieve(" or $msg contains "managesieve-login:") then -/var/log/dovecot/sieve.log
& stop
# All other Dovecot log
if $syslogfacility-text == 'local5' and $programname startswith "dovecot" then -/var/log/dovecot/dovecot.log
& stop
# cat /etc/logrotate.d/dovecot
/var/log/dovecot/*.log {
weekly
rotate 10
missingok
compress
delaycompress
notifempty
sharedscripts
postrotate
endscript
}
#cat /etc/rsyslog.conf
# /etc/rsyslog.conf configuration file for rsyslog
#
# For more information install rsyslog-doc and see
# /usr/share/doc/rsyslog-doc/html/configuration/index.html
#
# Default logging rules can be found in /etc/rsyslog.d/50-default.conf
#################
#### MODULES ####
#################
module(load="imuxsock") # provides support for local system logging
#module(load="immark") # provides --MARK-- message capability
# provides UDP syslog reception
#module(load="imudp")
#input(type="imudp" port="514")
# provides TCP syslog reception
#module(load="imtcp")
#input(type="imtcp" port="514")
# provides kernel logging support and enable non-kernel klog messages
module(load="imklog" permitnonkernelfacility="on")
###########################
#### GLOBAL DIRECTIVES ####
###########################
#
# Use traditional timestamp format.
# To enable high precision timestamps, comment out the following line.
#
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
# Filter duplicated messages
$RepeatedMsgReduction on
#
# Set the default permissions for all log files.
#
$FileOwner syslog
$FileGroup adm
$FileCreateMode 0640
$DirCreateMode 0755
$Umask 0022
$PrivDropToUser syslog
$PrivDropToGroup syslog
#
# Where to place spool and state files
#
$WorkDirectory /var/spool/rsyslog
#
# Include all config files in /etc/rsyslog.d/
#
$IncludeConfig /etc/rsyslog.d/*.conf
# ls -la /var/log/ | grep dovecot
drwxr-xr-x 2 syslog adm 4096 dic 12 09:29 dovecot
# ls -la /var/log/dovecot
total 8
drwxr-xr-x 2 syslog adm 4096 dic 12 09:29 .
drwxr-xr-x 21 root syslog 4096 feb 2 00:00 ..
-rw-r----- 1 syslog adm 0 dic 10 19:50 dovecot.log
-rw-r--r-- 1 syslog adm 0 dic 12 09:29 imap.log
-rw-r----- 1 syslog adm 0 dic 10 19:50 lda.log
-rw-r----- 1 syslog adm 0 dic 10 19:50 pop3.log
-rw-r----- 1 syslog adm 0 dic 10 19:50 sieve.log
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.