doveadm expunge -A Error: Dictionary commit failed

Alessio Cecchi alessio at skye.it
Tue Dec 20 17:09:03 UTC 2016



Il 20/12/2016 15:06, Aki Tuomi ha scritto:
>
>
> On 20.12.2016 15:37, Alessio Cecchi wrote:
>> Il 19/12/2016 14:28, Aki Tuomi ha scritto:
>>>
>>>
>>> On 19.12.2016 15:25, Alessio Cecchi wrote:
>>>> Hi,
>>>>
>>>> with the latest dovecot-ee version (dovecot-ee-2.2.26.1-10) if I run
>>>> “doveadm expunge -A mailbox Spam savedbefore 30d” dovecot an error:
>>>>
>>>> doveadm: Error: dict-client: Commit failed: Dict server timeout: No
>>>> input for 1916.209 secs (1 commands pending, oldest sent 0.000 secs
>>>> ago: C1) (reply took 0.000 secs)
>>>> doveadm: Error: expire: Dictionary commit failed
>>>>
>>>> Probably also "doveadm quota recalc -A" fail.
>>>>
>>>> Everything worked fine up to version 2.2.24
>>>>
>>>> I hope can be fixed.
>>>> Thanks
>>>
>>> Hi!
>>>
>>> Can you check your server's logs?
>>>
>>> Aki
>>>
>>
>> Hi Aki,
>>
>> no errors in the log, the only log in dovecot.log is:
>>
>> Dec  8 09:56:54 mx01eeh dovecot: master: Dovecot v2.2.26.1 (8feb0e1)
>> starting up for sieve (core dumps disabled)
>>
>> and also "doveadm error log" is empty, only in the shell where i run
>> "doveadm expunge -A" I see the error.
>>
>> Thanks
>
> For some reason dict-client in quota recalc cannot reach dict-server.
> Can you provide doveconf -n?
>
> Aki

Yes! Note: on this server dovecot act only as LDA, before the upgrade, 
with version 2.2.24 and the same configuration works fine.

Thanks

# 2.2.26.1 (8feb0e1): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.16 (1dc4c73)
# OS: Linux 2.6.32-642.11.1.el6.x86_64 x86_64 CentOS release 6.8 (Final)
auth_cache_negative_ttl = 5 mins
auth_cache_size = 10 M
auth_cache_ttl = 20 mins
auth_mechanisms = plain login
auth_worker_max_count = 50
deliver_log_format = msgid=%m, from=%f, subject="%s": %$
dict {
   acl = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
   expire = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
   sieve = mysql:/etc/dovecot/dovecot-dict-sieve-sql.conf.ext
   sqlquota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
}
disable_plaintext_auth = no
first_valid_gid = 89
first_valid_uid = 89
imap_client_workarounds = delay-newmail tb-extra-mailbox-sep tb-lsub-flags
imap_idle_notify_interval = 29 mins
last_valid_gid = 89
last_valid_uid = 89
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
mail_fsync = always
mail_location = maildir:~/Maildir
mail_plugins = quota acl expire zlib
maildir_very_dirty_syncs = yes
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 index ihave duplicate mime foreverypart extracttext
mmap_disable = yes
namespace {
   list = children
   location = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u
   prefix = shared/%%n/
   separator = /
   subscriptions = no
   type = shared
}
namespace inbox {
   inbox = yes
   location =
   mailbox Drafts {
     auto = subscribe
     special_use = \Drafts
   }
   mailbox Sent {
     auto = subscribe
     special_use = \Sent
   }
   mailbox "Sent Messages" {
     special_use = \Sent
   }
   mailbox Spam {
     auto = subscribe
     special_use = \Junk
   }
   mailbox Trash {
     auto = subscribe
     special_use = \Trash
   }
   prefix =
   separator = /
}
passdb {
   args = /etc/dovecot/dovecot-sql.conf.ext
   driver = sql
}
plugin {
   acl = vfile
   acl_shared_dict = proxy::acl
   antispam_backend = mailtrain
   antispam_mail_notspam = --ham
   antispam_mail_sendmail = /usr/bin/sa-learn
   antispam_mail_spam = --spam
   antispam_spam = Spam
   antispam_trash = Trash
   expire = Trash
   expire2 = Spam
   expire_dict = proxy::expire
   quota = maildir:UserQuota
   quota2 = dict:Quota Usage::noenforcing:proxy::sqlquota
   quota_grace = 10M
   quota_rule2 = Trash:storage=+100M
   quota_warning = storage=95%% quota-warning 95 %u
   quota_warning2 = storage=80%% quota-warning 80 %u
   sieve = file:~/sieve;active=~/.dovecot.sieve
   sieve_before = dict:proxy::sieve;name=activesql
   sieve_before2 = /etc/dovecot/sieve/before.sieve
   sieve_duplicate_default_period = 1h
   sieve_duplicate_max_period = 1d
   zlib_save = gz
   zlib_save_level = 6
}
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
pop3_fast_size_lookups = yes
protocols = sieve
sendmail_path = /var/qmail/bin/sendmail
service auth {
   client_limit = 6524
   unix_listener auth-userdb {
     group = vchkpw
     mode = 0660
     user = vpopmail
   }
}
service dict {
   process_limit = 500
   unix_listener dict {
     group = vchkpw
     mode = 0660
     user = vpopmail
   }
}
service imap-login {
   process_min_avail = 4
   service_count = 0
}
service imap-postlogin {
   executable = script-login /etc/dovecot/scripts/imap-postlogin.sh
   unix_listener imap-postlogin {
     group = vchkpw
     mode = 0660
     user = vpopmail
   }
   user = vpopmail
}
service imap {
   executable = imap imap-postlogin
   process_limit = 5000
   service_count = 100
   vsz_limit = 384 M
}
service managesieve-login {
   inet_listener sieve {
     port = 4190
   }
}
service pop3-login {
   process_min_avail = 4
   service_count = 0
}
service pop3-postlogin {
   executable = script-login /etc/dovecot/scripts/pop3-postlogin.sh
   unix_listener pop3-postlogin {
     group = vchkpw
     mode = 0660
     user = vpopmail
   }
   user = vpopmail
}
service pop3 {
   executable = pop3 pop3-postlogin
   process_limit = 1024
   service_count = 100
}
service quota-warning {
   executable = script /etc/dovecot/scripts/quota-warning.sh
   unix_listener quota-warning {
     user = vpopmail
   }
   user = vpopmail
}
ssl = no
submission_host = 127.0.0.1
userdb {
   driver = prefetch
}
userdb {
   args = /etc/dovecot/dovecot-sql.conf.ext
   driver = sql
}
verbose_proctitle = yes
protocol lda {
   mail_fsync = optimized
   mail_location = maildir:~/Maildir:INDEX=MEMORY
   mail_plugins = quota acl expire zlib sieve
}
protocol imap {
   mail_max_userip_connections = 50
   mail_plugins = quota acl expire zlib imap_quota imap_acl imap_zlib
}
protocol sieve {
   mail_max_userip_connections = 2
}
protocol pop3 {
   mail_max_userip_connections = 15
}

-- 
Alessio Cecchi
Postmaster @ http://www.qboxmail.it
https://www.linkedin.com/in/alessice


More information about the dovecot mailing list