[Dovecot] second fs quota root crashes

Juergen Obermann Juergen.Obermann at hrz.uni-giessen.de
Tue Oct 20 15:52:51 EEST 2009


Hallo.

In our dovecot 1.2.6 server running under Solaris 9 I would like to set up a
second quota root because the mail folders are in the users home directories and
the inboxes of all users are in /var/mail. As soon as I add

  quota2 = fs:INBOX:noenforcing:mount=/var/mail

the imap client crashes repeatedly as soon as the user tries to open a mail
folder. 

Thanks for any help.

Dovecot Logfile:
================

Oct 20 14:12:49 horus dovecot: [ID 583609 local0.info] Dovecot v1.2.6 starting up
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8214
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8216
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8217
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8218
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8219
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8220
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8222
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8225
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8223
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8230
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8228
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8229
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8224
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8221
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8233
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8231
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8226
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8237
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8236
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8232
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8234
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8235
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8238
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8227
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] auth(default): client in: AUTH   1       PLAIN   service=imap    secured lip=134.176.2.11        rip=134.176.150.104     lport=993       rport=1397
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] auth(default): client out: CONT  1       
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] auth(default): client in: CONT   1       AGcwMzMAcmVkIHNreQ==
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] auth-worker(default): pam(g033,134.176.150.104): lookup service=dovecot
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] auth-worker(default): pam(g033,134.176.150.104): #1/1 style=1 msg=Password: 
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] auth(default): client out: OK    1       user=g033
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] auth(default): master in: REQUEST        1       8236    1
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] auth(default): passwd(g033,134.176.150.104): lookup
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] auth(default): master out: USER  1       g033    system_groups_user=g033 uid=10033       gid=10010       home=/home/hrz/g033
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] imap-login: Login: user=<g033>, method=PLAIN, rip=134.176.150.104, lip=134.176.2.11, TLS
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8236
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] IMAP(g033): Loading modules from directory: /opt/local/lib/dovecot/imap
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] IMAP(g033): Module loaded: /opt/local/lib/dovecot/imap/lib10_quota_plugin.so
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] IMAP(g033): Module loaded: /opt/local/lib/dovecot/imap/lib11_imap_quota_plugin.so
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] IMAP(g033): Effective uid=10033, gid=10010, home=/home/hrz/g033
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] IMAP(g033): Quota root: name=Home-Verzeichnis backend=fs args=noenforcing
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] IMAP(g033): Quota root: name=INBOX backend=fs args=noenforcing:mount=/var/mail
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] IMAP(g033): Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] IMAP(g033): mbox: data=~/Mail:INBOX=/var/mail/g033
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs: root=/home/hrz/g033/Mail, index=, control=, inbox=/var/mail/g033
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs quota add storage dir = /home/hrz/g033/Mail
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs quota block device = fileserv:/export/home1/hrz
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs quota mount point = /home/hrz
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] IMAP(g033): Namespace: type=private, prefix=Mail/, sep=/, inbox=no, hidden=yes, list=no, subscriptions=yes
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] IMAP(g033): mbox: data=~/Mail:INBOX=/var/mail/g033
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs: root=/home/hrz/g033/Mail, index=, control=, inbox=/var/mail/g033
Oct 20 14:13:01 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8236
Oct 20 14:13:01 horus dovecot: [ID 583609 local0.error] dovecot: child 8241 (imap) killed with signal 11 (core dumped)
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] auth(default): client in: AUTH   1       PLAIN   service=imap    secured lip=134.176.2.11        rip=134.176.150.104     lport=993       rport=1398
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] auth(default): client out: CONT  1       
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] auth(default): client in: CONT   1       AGcwMzMAcmVkIHNreQ==
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] auth-worker(default): pam(g033,134.176.150.104): lookup service=dovecot
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] auth-worker(default): pam(g033,134.176.150.104): #1/1 style=1 msg=Password: 
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] auth(default): client out: OK    1       user=g033
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] auth(default): master in: REQUEST        2       8227    1
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] auth(default): passwd(g033,134.176.150.104): lookup
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] auth(default): master out: USER  2       g033    system_groups_user=g033 uid=10033       gid=10010       home=/home/hrz/g033
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] imap-login: Login: user=<g033>, method=PLAIN, rip=134.176.150.104, lip=134.176.2.11, TLS
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8227
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): Loading modules from directory: /opt/local/lib/dovecot/imap
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): Module loaded: /opt/local/lib/dovecot/imap/lib10_quota_plugin.so
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): Module loaded: /opt/local/lib/dovecot/imap/lib11_imap_quota_plugin.so
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): Effective uid=10033, gid=10010, home=/home/hrz/g033
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): Quota root: name=Home-Verzeichnis backend=fs args=noenforcing
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): Quota root: name=INBOX backend=fs args=noenforcing:mount=/var/mail
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): mbox: data=~/Mail:INBOX=/var/mail/g033
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs: root=/home/hrz/g033/Mail, index=, control=, inbox=/var/mail/g033
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs quota add storage dir = /home/hrz/g033/Mail
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs quota block device = fileserv:/export/home1/hrz
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs quota mount point = /home/hrz
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): Namespace: type=private, prefix=Mail/, sep=/, inbox=no, hidden=yes, list=no, subscriptions=yes
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): mbox: data=~/Mail:INBOX=/var/mail/g033
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs: root=/home/hrz/g033/Mail, index=, control=, inbox=/var/mail/g033
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8227
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.error] dovecot: child 8242 (imap) killed with signal 11 (core dumped)
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] auth(default): client in: AUTH   2       PLAIN   service=imap    secured lip=134.176.2.11        rip=134.176.150.104     lport=993       rport=1399
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] auth(default): client out: CONT  2       
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] auth(default): client in: CONT   2       AGcwMzMAcmVkIHNreQ==
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] auth-worker(default): pam(g033,134.176.150.104): lookup service=dovecot
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] auth-worker(default): pam(g033,134.176.150.104): #1/1 style=1 msg=Password: 
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] auth(default): client out: OK    2       user=g033
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] auth(default): master in: REQUEST        3       8227    2
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] auth(default): passwd(g033,134.176.150.104): lookup
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] auth(default): master out: USER  3       g033    system_groups_user=g033 uid=10033       gid=10010       home=/home/hrz/g033
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] imap-login: Login: user=<g033>, method=PLAIN, rip=134.176.150.104, lip=134.176.2.11, TLS
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8227
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): Loading modules from directory: /opt/local/lib/dovecot/imap
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): Module loaded: /opt/local/lib/dovecot/imap/lib10_quota_plugin.so
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): Module loaded: /opt/local/lib/dovecot/imap/lib11_imap_quota_plugin.so
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): Effective uid=10033, gid=10010, home=/home/hrz/g033
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): Quota root: name=Home-Verzeichnis backend=fs args=noenforcing
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): Quota root: name=INBOX backend=fs args=noenforcing:mount=/var/mail
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): mbox: data=~/Mail:INBOX=/var/mail/g033
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs: root=/home/hrz/g033/Mail, index=, control=, inbox=/var/mail/g033
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs quota add storage dir = /home/hrz/g033/Mail
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs quota block device = fileserv:/export/home1/hrz
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs quota mount point = /home/hrz
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): Namespace: type=private, prefix=Mail/, sep=/, inbox=no, hidden=yes, list=no, subscriptions=yes
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): mbox: data=~/Mail:INBOX=/var/mail/g033
Oct 20 14:13:02 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs: root=/home/hrz/g033/Mail, index=, control=, inbox=/var/mail/g033
Oct 20 14:13:03 horus dovecot: [ID 583609 local0.info] auth(default): new auth connection: pid=8227
Oct 20 14:13:03 horus dovecot: [ID 583609 local0.error] dovecot: child 8243 (imap) killed with signal 11 (core dumped)


Core file backtrace:
====================

horus{g033}1053:>gdb /opt/local/libexec/dovecot/imap core 
GNU gdb 5.3
Copyright 2002 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 "sparc-sun-solaris2.8"...
Core was generated by `imap'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libiconv.so.2...done.
Loaded symbols for /usr/local/lib/libiconv.so.2
Reading symbols from /usr/lib/libdl.so.1...done.
Loaded symbols for /usr/lib/libdl.so.1
Reading symbols from /usr/lib/libnsl.so.1...done.
Loaded symbols for /usr/lib/libnsl.so.1
Reading symbols from /usr/lib/libsocket.so.1...done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/librt.so.1...done.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /usr/lib/libsendfile.so.1...done.
Loaded symbols for /usr/lib/libsendfile.so.1
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/lib/libmp.so.2...done.
Loaded symbols for /usr/lib/libmp.so.2
Reading symbols from /usr/lib/libaio.so.1...done.
Loaded symbols for /usr/lib/libaio.so.1
Reading symbols from /usr/lib/libmd5.so.1...done.
Loaded symbols for /usr/lib/libmd5.so.1
Reading symbols from /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1...done.
Loaded symbols for /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1
Reading symbols from /opt/local/lib/dovecot/imap/lib10_quota_plugin.so...done.
Loaded symbols for /opt/local/lib/dovecot/imap/lib10_quota_plugin.so
Reading symbols from /usr/platform/SUNW,Ultra-4/lib/libmd5_psr.so.1...done.
Loaded symbols for /usr/platform/SUNW,Ultra-4/lib/libmd5_psr.so.1
Reading symbols from /opt/local/lib/dovecot/imap/lib11_imap_quota_plugin.so...done.
Loaded symbols for /opt/local/lib/dovecot/imap/lib11_imap_quota_plugin.so
#0  0xff0b467c in strlen () from /usr/lib/libc.so.1
(gdb) bt full
#0  0xff0b467c in strlen () from /usr/lib/libc.so.1
No symbol table info available.
#1  0xff107588 in _doprnt () from /usr/lib/libc.so.1
No symbol table info available.
#2  0xff1095f8 in vsnprintf () from /usr/lib/libc.so.1
No symbol table info available.
#3  0x000e6d44 in str_vprintfa ()
No symbol table info available.
#4  0x000d2ffc in internal_handler ()
No symbol table info available.
#5  0x000d30b8 in i_internal_error_handler ()
No symbol table info available.
#6  0x000d2ac0 in i_error ()
No symbol table info available.
#7  0xfefe6cec in fs_quota_match_box () from /opt/local/lib/dovecot/imap/lib10_quota_plugin.so
No symbol table info available.
#8  0xfefe473c in quota_root_is_visible () from /opt/local/lib/dovecot/imap/lib10_quota_plugin.so
No symbol table info available.
#9  0xfefe47e4 in quota_root_iter_next () from /opt/local/lib/dovecot/imap/lib10_quota_plugin.so
No symbol table info available.
#10 0xfefa1430 in cmd_getquotaroot () from /opt/local/lib/dovecot/imap/lib11_imap_quota_plugin.so
No symbol table info available.
#11 0x00032ca8 in client_command_input ()
No symbol table info available.
#12 0x00032f54 in client_handle_next_command ()
No symbol table info available.
#13 0x00032fd0 in client_handle_input ()
No symbol table info available.
#14 0x00033130 in client_input ()
No symbol table info available.
#15 0x000dbc84 in io_loop_handler_run ()
No symbol table info available.
#16 0x000db48c in io_loop_run ()
No symbol table info available.
#17 0x0003e49c in main ()
No symbol table info available.
(gdb) quit


Dovecot configuration:
======================

# 1.2.6: /opt/local/etc/dovecot.conf
# OS: SunOS 5.9 sun4u  
syslog_facility: local0
protocols: imap imaps pop3 pop3s
ssl_cert_file: /etc/ssl/server.crt
ssl_key_file: /etc/ssl/server.key
disable_plaintext_auth: no
version_ignore: yes
login_dir: /opt/local/var/run/dovecot/login
login_executable(default): /opt/local/libexec/dovecot/imap-login
login_executable(imap): /opt/local/libexec/dovecot/imap-login
login_executable(pop3): /opt/local/libexec/dovecot/pop3-login
login_process_per_connection: no
login_processes_count: 12
max_mail_processes: 4096
mail_location: mbox:~/Mail:INBOX=/var/mail/%u
mail_debug: yes
mmap_disable: yes
mail_nfs_storage: yes
mail_nfs_index: yes
mail_drop_priv_before_exec: yes
mail_executable(default): /opt/local/libexec/dovecot/imap
mail_executable(imap): /opt/local/libexec/dovecot/imap
mail_executable(pop3): /opt/local/libexec/dovecot/pop3
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugin_dir(default): /opt/local/lib/dovecot/imap
mail_plugin_dir(imap): /opt/local/lib/dovecot/imap
mail_plugin_dir(pop3): /opt/local/lib/dovecot/pop3
imap_client_workarounds(default): delay-newmail netscape-eoh tb-extra-mailbox-sep
imap_client_workarounds(imap): delay-newmail netscape-eoh tb-extra-mailbox-sep
imap_client_workarounds(pop3): 
pop3_uidl_format(default): %08Xu%08Xv
pop3_uidl_format(imap): %08Xu%08Xv
pop3_uidl_format(pop3): %08Xv%08Xu
pop3_client_workarounds(default): 
pop3_client_workarounds(imap): 
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
namespace:
  type: private
  separator: /
  inbox: yes
  list: yes
  subscriptions: yes
namespace:
  type: private
  separator: /
  prefix: Mail/
  hidden: yes
  list: no
  subscriptions: yes
lda:
  postmaster_address: postmaster at hrz.uni-giessen.de
auth default:
  verbose: yes
  debug: yes
  debug_passwords: yes
  passdb:
    driver: pam
  userdb:
    driver: passwd
plugin:
  quota: fs:Home-Verzeichnis:noenforcing
  quota2: fs:INBOX:noenforcing:mount=/var/mail


-- 
Hochschulrechenzentrum der | Mail: Juergen.Obermann at hrz.uni-giessen.de
Justus-Liebig-Universitaet | WWW:  http://www.uni-giessen.de/~g033
Heinrich-Buff-Ring 44      | Tel:  0641-99-13054 (0641-99-13001)
D-35392 Giessen, Germany   | Fax:  0641-99-13009


More information about the dovecot mailing list