Hello,
I can't have quota with dict working... In my error file, i have a "killed with signal 11". I don't know if it's a bug or a bad dovecot configuration... I hope i'll give you enough informations that you can help me... (sorry for my very bas english ;p)
Dovecot version : 1.0 RC2 (debian package backports : 1.0.rc2-1bpo1) Linux distribution name : Debian GNU/Linux, Sarge CPU architecture : x86
==> My /var/log/dovecot/dovecot.info file :
dovecot: 2006-07-23 14:30:52 Info: IMAP(myuser): Effective uid=1011, gid=1011 dovecot: 2006-07-23 14:30:52 Info: IMAP(myuser): Loading modules from directory: /usr/lib/dovecot/modules/imap dovecot: 2006-07-23 14:30:52 Info: IMAP(myuser): Module loaded: /usr/lib/dovecot/modules/imap/lib01_quota_plugin.so dovecot: 2006-07-23 14:30:52 Info: IMAP(myuser): Module loaded: /usr/lib/dovecot/modules/imap/lib02_imap_quota_plugin.so dovecot: 2006-07-23 14:30:52 Info: IMAP(myuser): maildir: data=/home/myuser/Mail dovecot: 2006-07-23 14:30:52 Info: IMAP(myuser): maildir: root=/home/myuser/Mail, index=/home/ecoffornic/Mail, control=, inbox= dovecot: 2006-07-23 14:30:52 Info: IMAP(myuser): dict quota: uri = mysql:/etc/dovecot/dict-quota.conf dovecot: 2006-07-23 14:30:52 Info: IMAP(myuser): dict quota: byte limit = 10485760 dovecot: 2006-07-23 14:30:52 Info: IMAP(myuser): dict quota: count limit = 0 dovecot: 2006-07-23 14:30:52 Info: imap-login: Login: user=<myuser>, method=plain, rip=82.228.176.60, lip=192.168.1.60
==> My /var/log/dovecot/dovecot.err file :
dovecot: 2006-07-23 14:30:52 Error: IMAP(myuser): Unknown dict module: mysql dovecot: 2006-07-23 14:30:52 Error: child 5702 (imap) killed with signal 11
==> My /etc/dovecot/dovecot.conf file :
protocols = imap pop3 disable_plaintext_auth = no
## Logging log_path = /var/log/dovecot.err info_log_path = /var/log/dovecot.info log_timestamp = "%Y-%m-%d %H:%M:%S "
## Mailbox default_mail_env = maildir:~/Mail
## Mail processes mail_debug = yes
## IMAP specific settings protocol imap { login_executable = /usr/lib/dovecot/imap-login mail_executable = /usr/lib/dovecot/imap mail_plugins = quota imap_quota }
## POP3 specific settings protocol pop3 { login_executable = /usr/lib/dovecot/pop3-login mail_executable = /usr/lib/dovecot/pop3 pop3_uidl_format = %v.%u }
## LDA specific settings protocol lda { postmaster_address = postmaster@pirio.org mail_plugins = quota }
## Authentication processes auth default { mechanisms = plain
## dovecot-lda specific settings socket listen { master { path = /var/run/dovecot-auth-master mode = 0600 user = postfix } }
# PAM authentication passdb pam { }
# /etc/passwd userdb passwd { }
}
## Dictionary server settings dict { }
## Plugin settings plugin { # quota = 10 Mo quota = dict:storage=10240 mysql:/etc/dovecot/dict-quota.conf }
==> My /etc/dovecot/dict-quota.conf :
connect = host=localhost dbname=dovecot user=dovecot table = quota select_field = current where_field = path username_field = username
==> Information about MySQL :
I have created a "dovecot" db with a "quota" table, and a "dovecot" mysql user with all rights access on the "dovecot" db. I have one line in my "quota" table :
path | username | current | ?? | myuser | 1024 |
(I don't know what to enter in "path" field...)
==> Core dumps
I have try the "Core Dumps" procedure, but i don't know if it's a success... There is what i get :
root@dmz# gdb /usr/lib/dovecot/imap /home/myuser/core GNU gdb 6.3-debian Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-linux"...(no debugging symbols found) Using host libthread_db library "/lib/libthread_db.so.1".
Core was generated by `imap'. Program terminated with signal 11, Segmentation fault. Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /usr/lib/dovecot/modules/imap/lib01_quota_plugin.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/dovecot/modules/imap/lib01_quota_plugin.so Reading symbols from /usr/lib/dovecot/modules/imap/lib02_imap_quota_plugin.so... (no debugging symbols found)...done. Loaded symbols for /usr/lib/dovecot/modules/imap/lib02_imap_quota_plugin.so #0 0x40158dd4 in quota_root_init () from /usr/lib/dovecot/modules/imap/lib01_quota_plugin.so (gdb) bt full #0 0x40158dd4 in quota_root_init () from /usr/lib/dovecot/modules/imap/lib01_quota_plugin.so No symbol table info available. #1 0x4015908b in quota_add_user_storage () from /usr/lib/dovecot/modules/imap/lib01_quota_plugin.so No symbol table info available. #2 0x4015d2d4 in quota_mail_storage_created () from /usr/lib/dovecot/modules/imap/lib01_quota_plugin.so No symbol table info available. #3 0x0806383b in main () No symbol table info available. (gdb) bt full #0 0x40158dd4 in quota_root_init () from /usr/lib/dovecot/modules/imap/lib01_quota_plugin.so No symbol table info available. #1 0x4015908b in quota_add_user_storage () from /usr/lib/dovecot/modules/imap/lib01_quota_plugin.so No symbol table info available. #2 0x4015d2d4 in quota_mail_storage_created () from /usr/lib/dovecot/modules/imap/lib01_quota_plugin.so No symbol table info available. #3 0x0806383b in main () No symbol table info available. (gdb)
Very thanks for your help,
Mikaƫl,