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. -- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: dovecot-config.txt URL: <http://dovecot.org/pipermail/dovecot/attachments/20150323/2f307b53/attachment-0001.txt>
On 03/23/2015 04:34 AM, rooster 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. > > -- >The imap_quota plugin is relevant only under protocol imap {}. It reports quota usage via the IMAP protocol. Under lmtp and any other protocol that can change quota usage, you need to load only the quota plugin, which does the actual work of accounting and enforcing the quota.
> On 2015-03-23, at 1:43 AM, Gedalya <gedalya at gedalya.net> wrote: > > The imap_quota plugin is relevant only under protocol imap {}. It reports quota usage via the IMAP protocol. Under lmtp and any other protocol that can change quota usage, you need to load only the quota plugin, which does the actual work of accounting and enforcing the quota.Thank you for the hint. So what I need to do is remove $mail_plugins from each "mail_plugins =? (I think the information I found was wrong in using $mail_plugins on each mail_plugins =, based on what you said above) , and only set the correct corresponding mail plugins? Is my example below, correct? e.g. : protocol imap { mail_plugins = zlib quota imap_quota imap_zlib antispam } protocol lmtp { mail_plugins = zlib quota } protocol lda { mail_plugins } --
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 rooster wrote:> 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_unregisterit's a linker problem. Are you sure, /usr/lib/dovecot/modules/lib11_imap_quota_plugin.so exists at all, is readable, is from the very same Dovecot version? - -- Steffen -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iQEVAwUBVREjg3z1H7kL/d9rAQJ8xQgAw5eeh/Fqx5dDzjf+CHTAVV8NFHRG9pC3 DUIXW11YhJTMk7xEyyCDo0O3BLZHNv4UL1ekrKe4OwOyd2qiNkXnuGfX5kOhEscx wUBVgeIMj5/TUfY1B3k4+h8nCQD9fsMDV+D5cbrLjOZWrQJfJQl0VBXJ0/GXpefX BfAnWZ3HBoBbXJ64po5YVUhickEdXb9k2Li7XqUzeYOzdWUbXx/ZQMJC2BX855iV x3KDRKCBHinRJysA761xXJo0vbOmmgEBJrdE3PWXCODu2k+B+SxCEwboaqhB5Ak6 CV3DGVDJ6h5wLca6Ce2EOEI00iOOHfBYP3OLTIgvAp7MuoeLu223cw==W8lh -----END PGP SIGNATURE-----
> On 2015-03-24, at 1:42 AM, Steffen <skdovecot at smail.inf.fh-brs.de> wrote: > > it's a linker problem. Are you sure, > /usr/lib/dovecot/modules/lib11_imap_quota_plugin.so exists at all, is > readable, is from the very same Dovecot version? > > - -- > SteffenIt might be a operating permissions issue then. The file(s) exist but the permissions are root:root on /usr/lib/dovecot and everything below. Does this mean I need to change the auth workers "user = " parameter? Some are set to mail and some to the virtual mail user (vmail). Here are the dovecot packages I have installed : ii dovecot-antispam 2.0+20130822-2build1 ii dovecot-core 1:2.2.9-1ubuntu2.1 ii dovecot-imapd 1:2.2.9-1ubuntu2.1 ii dovecot-lmtpd 1:2.2.9-1ubuntu2.1 ii dovecot-managesieved 1:2.2.9-1ubuntu2.1 ii dovecot-mysql 1:2.2.9-1ubuntu2.1 ii dovecot-pop3d 1:2.2.9-1ubuntu2.1 ii dovecot-sieve 1:2.2.9-1ubuntu2.1 --
> 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>It should be noted, that if I remove quota and imap_quota from mail_plugins , the error message goes away. Of course though, this is not the desired configuration (no quota support). --
> 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. --
-----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-----