[Dovecot] Enable mail logger plugin

Alexandre Ellert aellert at numeezy.com
Wed Feb 19 21:24:08 UTC 2014


Hello,

I'm trying to get more info about user activity (especially when they delete some email).
So, I follow info from http://wiki2.dovecot.org/Plugins/MailLog to enabled mail logger plugin, but I don't see anything in my logs.

Can you tell me what I'm missing ?

Thanks.

# doveconf -n
# 2.2.10.3: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.4 ext4
auth_mechanisms = plain login
base_dir = /var/run/dovecot/
hostname = mail.numeezy.com
imap_capability = +XLIST
lda_mailbox_autocreate = yes
listen = 188.165.154.169
login_greeting = Ready.
mail_gid = 5000
mail_location = maildir:/var/vmail/%d/%n/Maildir
mail_plugins = quota mail_log notify
mail_privileged_group = mail
mail_uid = 5000
namespace inbox {
  inbox = yes
  location = 
  mailbox Drafts {
    auto = subscribe
    special_use = \Drafts
  }
  mailbox Junk {
    auto = subscribe
    special_use = \Junk
  }
  mailbox Sent {
    auto = subscribe
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    auto = subscribe
    special_use = \Trash
  }
  mailbox name {
    special_use = \Drafts \Junk \Sent \Trash
  }
  prefix = 
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
}
plugin {
  antispam_backend = mailtrain
  antispam_mail_notspam = --ham
  antispam_mail_sendmail = /usr/local/bin/sa-learn-pipe.sh
  antispam_mail_spam = --spam
  antispam_spam = Junk
  antispam_trash = Trash
  mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
  mail_log_fields = uid box msgid size
  quota = dict:user::file:/var/vmail/%d/%n/.quotausage
  quota_grace = 10%%
  quota_rule = Trash:storage=+200M
  quota_warning = storage=95%% quota-warning 95 %u
  quota_warning2 = storage=80%% quota-warning 80 %u
  sieve = /var/vmail/%d/%n/.sieve
  sieve_before = /etc/dovecot/sieve_before
  sieve_vacation_send_from_recipient = yes
}
postmaster_address = postmaster at numeezy.com
protocols = imap pop3
service auth-worker {
  user = vmail
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
  unix_listener auth-userdb {
    group = vmail
    mode = 0600
    user = vmail
  }
  user = dovecot
}
service imap-login {
  inet_listener imap {
    port = 143
  }
  inet_listener imaps {
    port = 993
    ssl = yes
  }
  service_count = 1
}
service pop3-login {
  inet_listener pop3 {
    port = 110
  }
  inet_listener pop3s {
    port = 995
    ssl = yes
  }
  service_count = 1
}
service quota-warning {
  executable = script /usr/local/bin/quota-warning.sh
  unix_listener quota-warning {
    mode = 0666
    user = vmail
  }
  user = vmail
}
ssl_cert = </etc/postfix/smtpd.cert
ssl_key = </etc/postfix/smtpd.key
userdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
}
protocol lda {
  mail_plugins = sieve quota
}
protocol imap {
  mail_max_userip_connections = 80
  mail_plugins = quota imap_quota antispam
}
protocol pop3 {
  mail_max_userip_connections = 30
  mail_plugins = quota
}




More information about the dovecot mailing list