[Dovecot] Trying to get metadata plugin working
Hi,
I'm working on a Kolab related project and wanted to use dovecot on my dev machine. However I'm stuck with the metadata-plugin. I "solved" the permissions problems but now I get
dict: Error: file dict commit: file_dotlock_open(~/Maildir/shared-metadata) failed: No such file or directory
Before that, I had dict { metadata = file:/var/lib/dovecot/shared-metadata
but got problems since my normal user had no permission to access /var/lib/dovecot. I compiled the plugin from the most recent commit. My dovecot runs in a chroot. I can login with KMail and can create Groupware (annotated) folders, but the metadata file dict won't get created and I also can't set/get metadata via telnet.
doveconf -N # 2.0.15: /etc/dovecot/dovecot.conf # OS: Linux 3.1.0-1-amd64 x86_64 Debian 6.0.3 auth_mechanisms = plain dict { metadata = file:~/Maildir/shared-metadata } mail_access_groups = dovecot mail_location = maildir:~/Maildir mail_plugins = " metadata" passdb { driver = pam } plugin { metadata_dict = proxy::metadata } protocols = " imap" service dict { unix_listener dict { group = dovecot mode = 0666 } } ssl_cert =
Best regards,
Thomas Koch, http://www.koch.ro
On Monday 16 January 2012 16.51:45 Thomas Koch wrote:
I'm working on a Kolab related project and wanted to use dovecot on my dev machine.
Very interesting.
Please document your findings in wiki.kolab.org once you're done.
dict: Error: file dict commit: file_dotlock_open(~/Maildir/shared-metadata) failed: No such file or directory
Can't really help with that one, I'm afraid.
Best regards, Georg
-- Georg C. F. Greve Chief Executive Officer
Kolab Systems AG Zürich, Switzerland
e: greve@kolabsys.com t: +41 78 904 43 33 w: http://kolabsys.com
pgp: 86574ACA Georg C. F. Greve
Timo Sirainen:
Use %h/ instead of ~/
Hi Timo,
it doesn't expand either %h nor %%h. When I hardcode the path to my dev user's homedir I get a permission error. After hardcoding it to /tmp/shared-metadata the file gets at least written, but the content looks strange:
shared/mailbox/7c2ae515102e144f172d0000d1887b74/shared//vendor/kolab/folder- test true
Best regards,
Thomas Koch, http://www.koch.ro
On 16.1.2012, at 20.26, Thomas Koch wrote:
Timo Sirainen:
Use %h/ instead of ~/
Hi Timo,
it doesn't expand either %h nor %%h.
Oh, right, wrong place. If you make it go through proxy, it doesn't do any expansion. It's then accessed by the "dict" process (which probably runs as "dovecot" user).
You could instead use something like:
metadata_dict = file:%h/Maildir/shared-metadata
When I hardcode the path to my dev user's homedir I get a permission error. After hardcoding it to /tmp/shared-metadata the file gets at least written, but the content looks strange:
shared/mailbox/7c2ae515102e144f172d0000d1887b74/shared//vendor/kolab/folder- test true
I haven't really looked at what the metadata plugin actually does..
Hi Thomas and List!
Am Montag, 16. Januar 2012, 16:51:45 schrieb Thomas Koch:
dict: Error: file dict commit: file_dotlock_open(~/Maildir/shared-metadata) failed: No such file or directory The dovecot-metadata is still a work in progress, despite my earlier message reading differently. I assumed because Akonadi began to work (my telnet tests were already successful since a while), that the dovecot plugin would also work, but noticed later that everything was a coincidence.
Anyway, my config is: plugin { metadata_dict = proxy::metadata } dict { metadata = file:/var/lib/dovecot/shared-metadata }
This appears to work for me - I think the key is the proxy::.
--Dennis
participants (4)
-
Dennis Schridde
-
Georg C. F. Greve
-
Thomas Koch
-
Timo Sirainen