5

I am trying to get the new QuotaClone plugin in Dovecot (2.2.18) working. The documentation says the configuration should be like this:

mail_plugins = $mail_plugins quota quota_clone
plugin {
  quota_clone_dict = redis:127.0.0.1:6379
}

However, it does not say anything about the configuration file this should be in, so I assumed 20-lmtp.conf and 90-quota.conf are the appropriate locations. The Dovecot example immediately returned the following error "Error: quota_clone_dict: Failed to initialize 'redis:127.0.0.1:6379': dict redis: Unknown parameter: 6379".

After looking at the plugin code and the redis dict code, I changed it to the configuration below. It does not return any error now, but it does not work either (tcpdump shows no packages going to Redis).

90-quota.conf

plugin {
  quota = maildir:User quota
  quota_clone_dict = redis:host=127.0.0.1:port=6379
}

20-lmtp.conf

protocol lmtp {
  postmaster_address = postmaster@company.com
  mail_plugins = $mail_plugins quota quota_clone
}

I know the Quota Clone plugin is quite new, but maybe someone got it working already and can share some knowledge with me?

2
  • I'm having the same problem with mysql and quota_clone_dict. Any news here?
    – basbebe
    Jan 12, 2016 at 17:21
  • Possible explanation: "quota_clone does not do anything unless quota is doing something" as answered here.
    – anx
    Apr 19, 2019 at 13:13

1 Answer 1

-1

Redis server should be described as

quota_clone_dict = redis:127.0.0.1:6379

2
  • As stated in my post, that returns an error. Besides that, there is a difference between the docs and the actual code.
    – Jeroen
    Sep 3, 2015 at 14:26
  • So you have to dig into code, sorry.
    – Kondybas
    Sep 3, 2015 at 14:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.