[Dovecot] AIX mail quota plugin problems
From reading the wiki for a filesystem quota, I took my shot at
- building my binaries using the mods in AIXPluginsSupport
- changing dovecot.conf and
- putting the plugins in the library But I'm getting this error message when I invoke dovecot:
Plugin imap_quota not found from directory /usr/local/lib/dovecot Error: imap dump-capability process returned 89
It would seem that a) I have the syntax or the parameters wrong b) I didn't get the changes to the AIX build environment right
I've attached the dovecot -n output.
Here are the details of what I did.
- dovecot.conf
=========== within the imap config section =========== # Support for dynamically loadable plugins. mail_plugins is a space separated # list of plugins to load. #mail_plugins = #mail_plugin_dir = /usr/lib/dovecot/imap # SD 5/24/07 tryout FS quota plugin mail_plugins = quota imap_quota mail_plugin_dir = /usr/local/lib/dovecot/imap
plugin { # Here you can give some extra environment variables to mail processes. # This is mostly meant for passing parameters to plugins. %variable # expansion is done for all values.
# Quota plugin. Multiple backends are supported: # dirsize: Find and sum all the files found from mail directory. # Extremely SLOW with Maildir. It'll eat your CPU and disk I/O. # dict: Keep quota stored in dictionary (eg. SQL) # maildir: Maildir++ quota # fs: Read-only support for filesystem quota #quota = maildir # SD 5/24/07 Try FS quota support quota = fs
I've tried it as both
mail_plugin_dir = /usr/local/lib/dovecot/imap
and
mail_plugin_dir = /usr/local/lib/dovecot
- Both ways I see this error message:
4229 root@mercury:/usr/local/etc ## dovecot ILoading modules from directory: /usr/local/lib/dovecot IModule loaded: /usr/local/lib/dovecot/lib10_quota_plugin.so FPlugin imap_quota not found from directory /usr/local/lib/dovecot Error: imap dump-capability process returned 89
4272 root@mercury:/usr/local/lib/dovecot/imap ## dovecot ILoading modules from directory: /usr/local/lib/dovecot/imap IModule loaded: /usr/local/lib/dovecot/imap/lib10_quota_plugin.so FPlugin imap_quota not found from directory /usr/local/lib/dovecot/imap Error: imap dump-capability process returned 89
- These directories have the following contents:
4292 root@mercury:/usr/local/lib/dovecot ## ls -al total 1168 drwxr-xr-x 3 root system 512 May 24 12:36 ./ drwxr-xr-x 7 root system 512 May 21 14:31 ../ -rw-r--r-- 1 root sys 292522 May 22 15:12 052207-1455-64bit-ssl.lib10_quota_plugin.a -rwxr-xr-x 1 root sys 904 May 22 15:12 052207-1455-64bit-ssl.lib10_quota_plugin.la* -rwxr-xr-x 1 root sys 270499 May 22 15:12 052207-1455-64bit-ssl.lib10_quota_plugin.so* drwxr-xr-x 2 root system 512 May 24 12:41 imap/ lrwxrwxrwx 1 root system 65 May 24 12:36 lib10_quota_plugin.a@ -> /usr/local/lib/dovecot/052207-1 455-64bit-ssl.lib10_quota_plugin.a lrwxrwxrwx 1 root system 66 May 24 12:36 lib10_quota_plugin.la@ -> /usr/local/lib/dovecot/052207- 1455-64bit-ssl.lib10_quota_plugin.la* lrwxrwxrwx 1 root system 66 May 24 12:36 lib10_quota_plugin.so@ -> /usr/local/lib/dovecot/052207- 1455-64bit-ssl.lib10_quota_plugin.so*
root@mercury:/usr/local/lib/dovecot/imap ## ls -al total 152 drwxr-xr-x 2 root system 512 May 24 12:41 ./ drwxr-xr-x 3 root system 512 May 24 12:36 ../ -rw-r--r-- 1 root system 19250 May 22 15:12 052207-1455-64bit-ssl.lib11_imap_quota_plugin.a -rwxr-xr-x 1 root system 944 May 22 15:12 052207-1455-64bit-ssl.lib11_imap_quota_plugin.la* -rwxr-xr-x 1 root system 28645 May 22 15:12 052207-1455-64bit-ssl.lib11_imap_quota_plugin.so* lrwxrwxrwx 1 root system 66 May 24 12:36 lib10_quota_plugin.so@ -> /usr/local/lib/dovecot/052207- 1455-64bit-ssl.lib10_quota_plugin.so* lrwxrwxrwx 1 root system 75 May 24 12:36 lib11_imap_quota_plugin.a@ -> /usr/local/lib/dovecot/ima p/052207-1455-64bit-ssl.lib11_imap_quota_plugin.a lrwxrwxrwx 1 root system 76 May 24 12:36 lib11_imap_quota_plugin.la@ -> /usr/local/lib/dovecot/im ap/052207-1455-64bit-ssl.lib11_imap_quota_plugin.la* lrwxrwxrwx 1 root system 76 May 24 12:36 lib11_imap_quota_plugins.so@ -> /usr/local/lib/dovecot/i
Any suggestions?
--
Stewart Dean, Unix System Admin, Henderson Computer Resources Center of Bard College, Annandale-on-Hudson, New York 12504 sdean@bard.edu voice: 845-758-7475, fax: 845-758-7035
On Wed, 2007-05-30 at 12:46 -0400, Stewart Dean wrote:
4272 root@mercury:/usr/local/lib/dovecot/imap ## dovecot ILoading modules from directory: /usr/local/lib/dovecot/imap IModule loaded: /usr/local/lib/dovecot/imap/lib10_quota_plugin.so FPlugin imap_quota not found from directory /usr/local/lib/dovecot/imap Error: imap dump-capability process returned 89
quota is loaded OK, imap_quota isn't.
root@mercury:/usr/local/lib/dovecot/imap ## ls -al .. -rwxr-xr-x 1 root system 28645 May 22 15:12 052207-1455-64bit-ssl.lib11_imap_quota_plugin.so*
So it should be loading this.
lrwxrwxrwx 1 root system 76 May 24 12:36 lib11_imap_quota_plugins.so@ -> /usr/local/lib/dovecot/i
Why is it "plugins"? It should be "plugin".
Duh. Egg all over my face, for missing such a simple thing as a misspelled word. OK.
Incidentally, I have found and resolved the dotlock problem. Nothing to do with NFS, rather there was some legacy (something my predecessor had set up 10 years ago or more) instructions in the .procmailrc file that were trashing the locks; details to follow.
Anway, I corrected the misspelled filename, and Dovecot now loads
successfully with the fs quota plugin...but that then fails...
Please again, your help...hopefully, this is not as elementary as a
misspelled filename, but just as quickly fixable with your eagle eye.
Again this is AIX; FWIW, what Ralf does doesn't use fs quota, so this is
new territory. There is a trace attached.
Here it goes:
I start DC under truss truss -d -f -t !_poll dovecot > /tmp/dovecot.truss.out 2>&1
in maillog, I see:
Jun 5 11:31:38 mercury mail:info dovecot: Dovecot v1.0.0 starting up
Draves does some stuff:
Jun 5 11:32:56 mercury mail:info dovecot: auth(default): client out: OK 1 user=draves Jun 5 11:32:56 mercury mail:info dovecot: auth(default): master in: REQUEST 1 851978 1 Jun 5 11:32:56 mercury mail:info dovecot: auth(default): passwd(draves,10.20.30.14): lookup Jun 5 11:32:56 mercury mail:info dovecot: auth(default): master out: USER 1 draves system_user=draves uid=220 gid=20 0 home=/home/hcrc/draves Jun 5 11:32:56 mercury mail:info dovecot: imap-login: Login: user=<draves>, method=PLAIN, rip=10.20.30.14, lip=192.246.229.21, TLS Jun 5 11:32:56 mercury mail:info dovecot: IMAP(draves): Loading modules from directory: /usr/local/lib/dovecot/imap Jun 5 11:32:56 mercury mail:info dovecot: IMAP(draves): Module loaded: /usr/local/lib/dovecot/imap/lib10_quota_plugin.so Jun 5 11:32:56 mercury mail:info dovecot: IMAP(draves): Module loaded: /usr/local/lib/dovecot/imap/lib11_imap_quota_plugin.so Jun 5 11:32:57 mercury mail:info dovecot: IMAP(draves): Effective uid=220, gid=200, home=/home/hcrc/draves Jun 5 11:32:57 mercury mail:info dovecot: IMAP(draves): mbox: data=/home/hcrc/draves/mail:INBOX=/var/spool/mail/draves:INDEX=/var/dcn dx/draves Jun 5 11:32:57 mercury mail:info dovecot: IMAP(draves): mbox: root=/home/hcrc/draves/mail, index=/var/dcndx/draves, inbox=/var/spool/ mail/draves Jun 5 11:32:57 mercury mail:info dovecot: IMAP(draves): fs quota add storage dir = /home/hcrc/draves/mail Jun 5 11:32:57 mercury mail:info dovecot: IMAP(draves): fs quota block device = /dev/hd4 Jun 5 11:32:57 mercury mail:info dovecot: IMAP(draves): fs quota mount point = / Jun 5 11:32:58 mercury mail:err|error dovecot: IMAP(draves): quotactl(Q_GETQUOTA, /) failed: Invalid argument
This is 1:20 or 80 seconds after the start of DC and about line 11982 in the trace file
I (sdean) do some stuff:
Jun 5 11:33:05 mercury mail:info dovecot: auth(default): client out: OK 1 user=sdean Jun 5 11:33:05 mercury mail:info dovecot: auth(default): master in: REQUEST 2 1351756 1 Jun 5 11:33:05 mercury mail:info dovecot: auth(default): passwd(sdean,10.20.10.75): lookup Jun 5 11:33:05 mercury mail:info dovecot: auth(default): master out: USER 2 sdean system_user=sdean uid=202 gid=20 0 home=/home/hcrc/sdean Jun 5 11:33:05 mercury mail:info dovecot: imap-login: Login: user=<sdean>, method=PLAIN, rip=10.20.10.75, lip=192.246.229.21, TLS Jun 5 11:33:05 mercury mail:info dovecot: IMAP(sdean): Loading modules from directory: /usr/local/lib/dovecot/imap Jun 5 11:33:05 mercury mail:info dovecot: IMAP(sdean): Module loaded: /usr/local/lib/dovecot/imap/lib10_quota_plugin.so Jun 5 11:33:05 mercury mail:info dovecot: IMAP(sdean): Module loaded: /usr/local/lib/dovecot/imap/lib11_imap_quota_plugin.so Jun 5 11:33:06 mercury mail:info dovecot: IMAP(sdean): Effective uid=202, gid=200, home=/home/hcrc/sdean Jun 5 11:33:06 mercury mail:info dovecot: IMAP(sdean): mbox: data=/home/hcrc/sdean/mail:INBOX=/var/spool/mail/sdean:INDEX=/var/dcndx/ sdean Jun 5 11:33:06 mercury mail:info dovecot: IMAP(sdean): mbox: root=/home/hcrc/sdean/mail, index=/var/dcndx/sdean, inbox=/var/spool/mai l/sdean Jun 5 11:33:06 mercury mail:info dovecot: IMAP(sdean): fs quota add storage dir = /home/hcrc/sdean/mail Jun 5 11:33:06 mercury mail:info dovecot: IMAP(sdean): fs quota block device = /dev/hd4 Jun 5 11:33:06 mercury mail:info dovecot: IMAP(sdean): fs quota mount point = / Jun 5 11:33:06 mercury mail:err|error dovecot: IMAP(sdean): quotactl(Q_GETQUOTA, /) failed: Invalid argument
This is 1:28 or 88 seconds after the start of DC and about line 23478 in the trace file
======================================
In syslog, the same stuff:
4220 root@mercury:/var/log ## tail -f syslog | grep dovecot Jun 5 11:32:58 mercury mail:err|error dovecot: IMAP(draves): quotactl(Q_GETQUOTA, /) failed: Invalid argument Jun 5 11:33:06 mercury mail:err|error dovecot: IMAP(sdean): quotactl(Q_GETQUOTA, /) failed: Invalid argument
Compressed trace file attached.........
Thanks in advance.
Timo Sirainen wrote:
Why is it "plugins"? It should be "plugin".
--
Stewart Dean, Unix System Admin, Henderson Computer Resources
Center of Bard College, Annandale-on-Hudson, New York 12504
sdean@bard.edu voice: 845-758-7475, fax: 845-758-7035
participants (2)
-
Stewart Dean
-
Timo Sirainen