[Dovecot] Syslog debug messages

Bruno Galindro da Costa bruno.galindro at gmail.com
Thu Dec 5 14:17:16 EET 2013


Is there a way to configure dovecot to register in syslog the debug
messages enabled by  mail_debug=yes as a debug not as information?

I need this because I want to send this kind of information only to a
remote server. I've configured rsyslog to do this, but dovecot is
registering those debug messages as information not as debug (as I
expected).


This is my rsyslog config:

mail.info;\
        mail.warning;\
        mail.err;\
        mail.crit               -/var/log/mail.log
mail.*                          :omrelp:192.168.2.162:2514


root at imap:~# dovecot -n
# 1.2.9: /etc/dovecot/dovecot.conf
Warning: fd limit 1024 is lower than what Dovecot can use under full load
(more than 4748). Either grow the limit or change login_max_processes_count
and max_mail_processes settings
# OS: Linux 2.6.32-44-server x86_64 Ubuntu 10.04.4 LTS xfs
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap imaps managesieve pop3s
listen(default): *:143,[::]:143
listen(imap): *:143,[::]:143
listen(pop3): *
listen(managesieve): *
ssl_listen(default): *:993,[::]:993
ssl_listen(imap): *:993,[::]:993
ssl_listen(pop3): *:2221,[::]:2221
ssl_listen(managesieve):
ssl_ca_file(default): /etc/dovecot/ca.crt
ssl_ca_file(imap): /etc/dovecot/ca.crt
ssl_ca_file(pop3): /etc/dovecot/ca.crt
ssl_ca_file(managesieve):
ssl_cert_file(default): /etc/dovecot/ufsc.br.crt
ssl_cert_file(imap): /etc/dovecot/ufsc.br.crt
ssl_cert_file(pop3): /etc/dovecot/ufsc.br.crt
ssl_cert_file(managesieve): /etc/ssl/certs/dovecot.pem
ssl_key_file(default): /etc/dovecot/ufsc.br.key
ssl_key_file(imap): /etc/dovecot/ufsc.br.key
ssl_key_file(pop3): /etc/dovecot/ufsc.br.key
ssl_key_file(managesieve): /etc/ssl/private/dovecot.pem
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
login_executable(managesieve): /usr/lib/dovecot/managesieve-login
login_process_per_connection: no
login_process_size: 256
login_max_processes_count: 900
login_max_connections: 1024
max_mail_processes: 2048
mail_max_userip_connections(default): 2048
mail_max_userip_connections(imap): 2048
mail_max_userip_connections(pop3): 10
mail_max_userip_connections(managesieve): 10
mail_privileged_group: mail
mail_uid: vmail
mail_gid: mail
mail_location:
maildir:/var/mail/mailboxes/%d/%n:INDEX=/var/mail/indexes/%d/%n
mail_debug: yes
fsync_disable(default): yes
fsync_disable(imap): yes
fsync_disable(pop3): yes
fsync_disable(managesieve): no
mbox_write_locks: fcntl dotlock
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_executable(managesieve): /usr/lib/dovecot/managesieve
mail_plugins(default): quota imap_quota autocreate trash zlib
mail_plugins(imap): quota imap_quota autocreate trash zlib
mail_plugins(pop3): quota
mail_plugins(managesieve):
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve
managesieve_implementation_string(default): dovecot
managesieve_implementation_string(imap): dovecot
managesieve_implementation_string(pop3): dovecot
managesieve_implementation_string(managesieve): Cyrus timsieved v2.2.13
lda:
  fsync_disable: no
  postmaster_address: xxx at xxx.xxx.xx
  mail_plugins: quota sieve
  auth_socket_path: /var/run/dovecot/auth-master
auth default:
  cache_size: 1024
  cache_ttl: 600
  cache_negative_ttl: 60
  username_chars:
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@~
  username_format: %Lu
  passdb:
    driver: checkpassword
    args: /etc/dovecot/passdb.v3.1.sh
  userdb:
    driver: prefetch
  userdb:
    driver: ldap
    args: /etc/dovecot/dovecot-ldap-userdb.conf
  socket:
    type: listen
    client:
      path: /var/run/dovecot/auth-client
      mode: 432
    master:
      path: /var/run/dovecot/auth-master
      mode: 384
      user: vmail
      group: mail
plugin:
  quota_exceeded_message: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.
  quota: maildir:DefaultQuota
  quota_warning: storage=95%% /usr/local/bin/quota-warning.sh 95 %u
  quota_warning2: storage=90%% /usr/local/bin/quota-warning.sh 90 %u
  trash: /etc/dovecot/dovecot-trash.conf
  sieve: /var/mail/sieve_scripts/%d/%n/.dovecot.sieve
  sieve_dir: /var/mail/sieve_scripts/%d/%n/sieve
  mail_log_events: delete expunge copy mailbox_delete
  mail_log_fields: uid box msgid from subject size vsize
  autocreate: Spam
  autosubscribe: Spam


-- 
Att.
Bruno Galindro da Costa


More information about the dovecot mailing list