-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 rooster wrote:> >> On 2015-03-23, at 1:34 AM, rooster <yawowb+dovecot at nuclei.ca> >> wrote: >> >> Hello list, >> >> I have been struggling with establishing a working installation >> of dovecot with mySQL quota support. I have not been able to find >> a guide or tutorial that works for the current revisions of >> software I have at my disposal. >> >> Most notably, the error I see in the mail log is as follows : >> >> Mar 23 00:55:31 host dovecot: lmtp(328): Debug: Module loaded: >> /usr/lib/dovecot/modules/lib10_quota_plugin.so Mar 23 00:55:31 >> host dovecot: lmtp(328): Error: >> dlopen(/usr/lib/dovecot/modules/lib11_imap_quota_plugin.so) >> failed: /usr/lib/dovecot/modules/lib11_imap_quota_plugin.so: >> undefined symbol: command_unregister Mar 23 00:55:31 host >> dovecot: lmtp(328): Fatal: Couldn't load required plugins >> >> I have attached my dovecot -n output. The installed revision of >> dovecot is 2.2.9 on ubuntu 14.04.02 LTS. >> >> Thank you in advance. >> >> -- >> >> <dovecot-config.txt> > > > Since I hadn?t tested access to dovecot yet, I ran through the test > steps posted on the wiki > (http://wiki.dovecot.org/TestInstallation). I was able to log in > and list the mailboxes successfully, but the error above still > persists on message delivery. > > Should I be using lmtp with postfix + mysql and dovecot? Or should > I be using lda? The directions I read were for lmtp.The actual question is, why your system cannot load the shared libray lib11_imap_quota_plugin.so dynamically, although lib10_quota_plugin.so works. Maybe you should remove the failed file and force a reinstall of the package. I don't suppose, the package is defective, someone other should have reported this problem by now. - -- Steffen -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iQEVAwUBVRgwEHz1H7kL/d9rAQKJZgf9GDoJL2sZ4Aik7Df5Ld290tG4LeHeAfcB Wo5GmCsYQJwDbCUKflzYYsGk37/MwVEh0xP7gdbclgT+VTVv7f6n/VgnM/V1w+R7 cLtv56LD6fyfHOylLhykDUiWsQiH41gLb+SUdy7LV11oGPM8BgpY1pQreXmUq2QR CY8nDrVIEZ774VG7TyJBacLQ2/bsavW0s0eLxkLKVykptDH8ZVtas1GsRqlWlEC6 HdzFE5eb2TfilorwMH+l2DjiRwNsaBzO1BkeGnnCnTMz2OK1KOZxkfOWtgTSUQw+ G15V88MEe5PaxDJez/Yj8qtnJsv8QLD+ekRjc407rU3zzM6a/67zlA==xxG5 -----END PGP SIGNATURE-----
On 03/29/2015 01:02 PM, Steffen wrote:> The actual question is, why your system cannot load the shared libray > lib11_imap_quota_plugin.so dynamically, although lib10_quota_plugin.so > works. > > Maybe you should remove the failed file and force a reinstall of the > package. I don't suppose, the package is defective, someone other > should have reported this problem by now.This problem can be reproduced in one second. Here you go: protocol lmtp { mail_plugins = $mail_plugins sieve imap_quota } Mar 29 13:13:33 mail dovecot: lmtp(25315): Connect from local Mar 29 13:13:33 mail dovecot: lmtp(gedalya at gedalya.net): Error: Couldn't load required plugin /usr/lib/dovecot/modules/lib11_imap_quota_plugin.so: dlopen() failed: /usr/lib/dovecot/modules/lib11_imap_quota_plugin.so: undefined symbol: command_unregister Simple: imap_quota is not a plugin for lmtp, it is a plugin for imap. Notice the last bit of the error message. It won't work just like you couldn't dynamically load it into LibreOffice or whatever.
> On 2015-03-29, at 10:16 AM, Gedalya <gedalya at gedalya.net> wrote: > > This problem can be reproduced in one second. Here you go: > > protocol lmtp { > mail_plugins = $mail_plugins sieve imap_quota > } > > Mar 29 13:13:33 mail dovecot: lmtp(25315): Connect from local > Mar 29 13:13:33 mail dovecot: lmtp(gedalya at gedalya.net): Error: Couldn't load required plugin /usr/lib/dovecot/modules/lib11_imap_quota_plugin.so: dlopen() failed: /usr/lib/dovecot/modules/lib11_imap_quota_plugin.so: undefined symbol: command_unregister > > Simple: imap_quota is not a plugin for lmtp, it is a plugin for imap. Notice the last bit of the error message. It won't work just like you couldn't dynamically load it into LibreOffice or whatever.Thank you for pinpointing the issue. Unfortunately, I am at a lost then as to why it fails for me. My settings are as follows : 10-mail.conf : mail_plugins = $mail_plugins zlib quota 15-lda.conf : mail_plugins = $mail_plugins sieve 20-imap.conf : mail_plugins = $mail_plugins imap_zlib imap_quota antispam 20-lmtp.conf : mail_plugins = $mail_plugins sieve Am I to remove each $mail_plugins and then explicitly set each mail_plugins = ""? Looking at my doveconf -n file I posted originally, I do see the following : protocol lmtp { mail_plugins = " zlib quota imap_zlib imap_quota antispam sieve" } And checking the doveconf - n output right now on the server I see the same as above (I was checking in case I had attempted changes since my original post, but nothing has changed). So, either due to a bug or working as intended (or possibly, both), my lmtp protocol section is loading all $mail_plugins. Is it correct to theorize that if the file 20-lmtp.conf were to be renamed so that it was numbered between 16 and 19, that this $mail_plugins problem would be resolved? Or should I rename 20-imap.conf and 20-pop3.conf (I have not enabled POP3 as of yet), to higher digits (e.g. : 21-imap.conf and 21-pop3.conf)? If renaming the conf files to higher digits will fix this for me, I am inclined to do so to the imap and pop3 conf files. :) If this is a bug, is this the ubuntu package at fault, or something further up the chain? --