[Dovecot] configuring imap_stats

2012-07-09 Thread Reinhard Vicinus

Hi,

i'm trying to configure imap_stats like it's documented in the wiki: 
http://wiki2.dovecot.org/Statistics. But as soon as i activate the 
imap_stats plugin i get the following error message trying to login via 
imap:


dovecot: imap: Error: Can't load plugin imap_stats_plugin: Plugin stats 
must be loaded also (you must set: mail_plugins=$mail_plugins stats)


But the stats plugin is configured as you can see in the attached 
configurations. Also i can get statistics without the imap_stats 
enabled, but as far as i know only of the pop3 users.


Kind regards
Reinhard

# 2.1.7: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-40-server x86_64 Ubuntu 10.04.4 LTS 
auth_cache_negative_ttl = 0
auth_cache_size = 10 M
auth_cache_ttl = 1 mins
auth_verbose = yes
auth_verbose_passwords = sha1
deliver_log_format = mailbox: deliver: msgid=%m from=%f: %$
dict {
  quota = mysql:/etc/dovecot/conf.d/dovecot-dict-sql.conf.ext
}
disable_plaintext_auth = no
doveadm_password = xxx
imapc_features = rfc822.size
imapc_host = local-mailbox
imapc_port = 18143
instance_name = dovecot-mailbox
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
login_greeting = Mailbox
login_log_format = mailbox: login: %$: %s
login_trusted_networks = 10.129.3.0/24
mail_debug = yes
mail_fsync = always
mail_gid = vmail
mail_home = /mail/dovecot/%d/%n
mail_location = mdbox:~/mail
mail_log_prefix = mailbox: mail: %s(%u): 
mail_plugins = quota stats
mail_privileged_group = vmail
mail_uid = vmail
managesieve_implementation_string = Sieve
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character 
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy 
include variables body enotify environment mailbox date ihave
mdbox_rotate_interval = 1 weeks
mdbox_rotate_size = 50 M
mmap_disable = yes
namespace {
  hidden = yes
  list = no
  location = pop3c:
  prefix = POP3-MIGRATION-NS/
}
namespace inbox {
  inbox = yes
  location = 
  prefix = 
}
passdb {
  args = /etc/dovecot/conf.d/dovecot-sql.conf.ext
  driver = sql
}
plugin {
  pop3_migration_mailbox = POP3-MIGRATION-NS/INBOX
  quota = dict:User quota::proxy::quota
  quota_rule = *:storage=10G
  quota_rule2 = Trash:storage=+100M
  quota_warning = storage=95%% quota-warning 95 %u
  quota_warning2 = storage=80%% quota-warning 80 %u
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
  stats_refresh = 30 secs
  stats_track_cmds = yes
}
pop3c_host = local-mailbox
pop3c_port = 18110
protocols = imap pop3 lmtp sieve
service auth {
  unix_listener auth-userdb {
group = dovecot
mode = 0660
user = dovecot
  }
}
service dict {
  unix_listener dict {
group = vmail
mode = 0660
  }
}
service doveadm {
  inet_listener doveadm-server {
port = 19000
  }
}
service imap-login {
  inet_listener imap {
port = 19143
  }
}
service imap-postlogin {
  executable = script-login /usr/local/bin/dovecot-postlogin
  user = $default_internal_user
}
service imap {
  executable = imap imap-postlogin
}
service lmtp {
  inet_listener lmtp {
address = *
port = 19024
  }
}
service managesieve-login {
  inet_listener sieve {
port = 19200
  }
}
service pop3-login {
  inet_listener pop3 {
port = 19110
  }
}
service pop3-postlogin {
  executable = script-login /usr/local/bin/dovecot-postlogin
  user = $default_internal_user
}
service pop3 {
  executable = pop3 pop3-postlogin
}
service quota-warning {
  executable = script /usr/local/bin/quota-warning
  extra_groups = dovecot
  unix_listener quota-warning {
user = vmail
  }
  user = vmail
}
service stats {
  fifo_listener stats-mail {
mode = 0600
user = vmail
  }
}
ssl = no
userdb {
  driver = prefetch
}
userdb {
  args = /etc/dovecot/conf.d/dovecot-sql.conf.ext
  driver = sql
}
verbose_proctitle = yes
protocol imap {
  imap_client_workarounds = delay-newmail tb-extra-mailbox-sep
  mail_plugins = quota imap_quota imap_stats
}
protocol lmtp {
  mail_plugins = quota sieve
}
protocol doveadm {
  mail_plugins = quota pop3_migration
}


Re: [Dovecot] configuring imap_stats

2012-07-09 Thread Pascal Volk
On 07/09/2012 12:45 PM Reinhard Vicinus wrote:
 Hi,
 
 i'm trying to configure imap_stats like it's documented in the wiki: 
 http://wiki2.dovecot.org/Statistics. But as soon as i activate the 
 imap_stats plugin i get the following error message trying to login via 
 imap:
 
 dovecot: imap: Error: Can't load plugin imap_stats_plugin: Plugin stats 
 must be loaded also (you must set: mail_plugins=$mail_plugins stats)

The global mail_plugins setting should contain:

mail_plugins = quota stats

And protocol imap's mail_plugins setting should contain:

mail_plugins = $mail_plugins imap_quota imap_stats

The $mail_plugins inside protocol imap {} will be expanded to the value
of your global mail_plugins setting.

,--[ doveconf -f protocol=imap mail_plugins ]--
| mail_plugins = quota stats imap_quota imap_stats
`--


Regards,
Pascal
-- 
The trapper recommends today: c01dcofe.1219...@localdomain.org