[Dovecot] second fs quota root crashes
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@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@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
On Tue, 2009-10-20 at 14:52 +0200, Juergen Obermann wrote:
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.
I guess this helps? http://hg.dovecot.org/dovecot-1.2/rev/439e14ff1467
Or just adding the mount= path to the first quota setting.
On Tue, Oct 27, 2009 at 07:19:26PM -0400, Timo Sirainen wrote:
On Tue, 2009-10-20 at 14:52 +0200, Juergen Obermann wrote:
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.
I guess this helps? http://hg.dovecot.org/dovecot-1.2/rev/439e14ff1467
Or just adding the mount= path to the first quota setting.
Hello,
The patch in http://hg.dovecot.org/dovecot-1.2/rev/439e14ff1467 helps with the crash of the imap client, but the second quota still does not work. The below log shows, that only the first fs quota is used for the inbox and the mail folders. Even adding 'mount=/home/hrz' to the first quota setting does not help. Btw what would be the right mount path setting for an automounter mountpoint /home for home filesystems?
Thank you, Jürgen
Oct 28 15:20:49 horus dovecot: [ID 583609 local0.info] Dovecot v1.2.6 starting up .... Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): Loading modules from directory: /opt/local/lib/dovecot/imap Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): Module loaded: /opt/local/lib/dovecot/imap/lib10_quota_plugin.so Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): Module loaded: /opt/local/lib/dovecot/imap/lib11_imap_quota_plugin.so Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): Effective uid=10033, gid=10010, home=/home/hrz/g033 Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): Quota root: name=Home-Verzeichnis backend=fs args=noenforcing Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): Quota root: name=INBOX backend=fs args=noenforcing:mount=/var/mail Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): mbox: data=~/Mail:INBOX=/var/mail/g033 Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs: root=/home/hrz/g033/Mail, index=, control=, inbox=/var/mail/g033 Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs quota add storage dir = /home/hrz/g033/Mail Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs quota block device = fileserv:/export/home1/hrz Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs quota mount point = /home/hrz Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): Namespace: type=private, prefix=Mail/, sep=/, inbox=no, hidden=yes, list=no, subscriptions=yes Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): mbox: data=~/Mail:INBOX=/var/mail/g033 Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs: root=/home/hrz/g033/Mail, index=, control=, inbox=/var/mail/g033 Oct 28 15:21:20 horus dovecot: [ID 583609 local0.info] IMAP(g033): quota-fs: host=fileserv, path=/export/home1/hrz, uid=10033, bytes Oct 28 15:21:20 horus dovecot: [ID 583609 local0.info] IMAP(g033): quota-fs: uid=10033, value=1550740480, limit=2048000000, active=1 Oct 28 15:21:20 horus dovecot: [ID 583609 local0.info] IMAP(g033): box=/var/mail/g033 mount=/var/mail match=yes Oct 28 15:21:20 horus dovecot: [ID 583609 local0.info] IMAP(g033): quota-fs: host=fileserv, path=/export/home1/hrz, uid=10033, bytes Oct 28 15:21:20 horus dovecot: [ID 583609 local0.info] IMAP(g033): quota-fs: uid=10033, value=1550740480, limit=2048000000, active=1 Oct 28 15:21:20 horus dovecot: [ID 583609 local0.info] IMAP(g033): box=/var/mail/g033 mount=/var/mail match=yes .... Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): Loading modules from directory: /opt/local/lib/dovecot/imap Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): Module loaded: /opt/local/lib/dovecot/imap/lib10_quota_plugin.so Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): Module loaded: /opt/local/lib/dovecot/imap/lib11_imap_quota_plugin.so Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): Effective uid=10033, gid=10010, home=/home/hrz/g033 Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): Quota root: name=Home-Verzeichnis backend=fs args=noenforcing Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): Quota root: name=INBOX backend=fs args=noenforcing:mount=/var/mail Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): mbox: data=~/Mail:INBOX=/var/mail/g033 Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs: root=/home/hrz/g033/Mail, index=, control=, inbox=/var/mail/g033 Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs quota add storage dir = /home/hrz/g033/Mail Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs quota block device = fileserv:/export/home1/hrz Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs quota mount point = /home/hrz Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): Namespace: type=private, prefix=Mail/, sep=/, inbox=no, hidden=yes, list=no, subscriptions=yes Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): mbox: data=~/Mail:INBOX=/var/mail/g033 Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs: root=/home/hrz/g033/Mail, index=, control=, inbox=/var/mail/g033 Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): quota-fs: host=fileserv, path=/export/home1/hrz, uid=10033, bytes Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): quota-fs: uid=10033, value=1550740480, limit=2048000000, active=1 Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): box=/home/hrz/g033/Mail/dfncert mount=/var/mail match=no Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): quota-fs: host=fileserv, path=/export/home1/hrz, uid=10033, bytes Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): quota-fs: uid=10033, value=1550740480, limit=2048000000, active=1 Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): box=/home/hrz/g033/Mail/dfncert mount=/var/mail match=no
-- Hochschulrechenzentrum der | Mail: Juergen.Obermann@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
On Thu, 2009-10-29 at 14:21 +0100, Juergen Obermann wrote:
The patch in http://hg.dovecot.org/dovecot-1.2/rev/439e14ff1467 helps with the crash of the imap client, but the second quota still does not work.
What does it show if you give:
a GETQUOTA "Home-Verzeichnis" b GETQUOTA INBOX c GETQUOTAROOT INBOX d GETQUOTAROOT <some other mailbox name than INBOX>
i.e. is the problem that there really isn't those two quotas, or one of them returns wrong value, or one of them just isn't listed, or..?
The below log shows, that only the first fs quota is used for the inbox and the mail folders.
I thought the logs showed both of the quotas.
Even adding 'mount=/home/hrz' to the first quota setting does not help. Btw what would be the right mount path setting for an automounter mountpoint /home for home filesystems?
mount=%h maybe?
On Thu, Oct 29, 2009 at 12:59:40PM -0400, Timo Sirainen wrote:
On Thu, 2009-10-29 at 14:21 +0100, Juergen Obermann wrote:
The patch in http://hg.dovecot.org/dovecot-1.2/rev/439e14ff1467 helps with the crash of the imap client, but the second quota still does not work.
What does it show if you give:
a GETQUOTA "Home-Verzeichnis" b GETQUOTA INBOX c GETQUOTAROOT INBOX d GETQUOTAROOT <some other mailbox name than INBOX>
i.e. is the problem that there really isn't those two quotas, or one of them returns wrong value, or one of them just isn't listed, or..?
The below log shows, that only the first fs quota is used for the inbox and the mail folders.
I thought the logs showed both of the quotas.
Even adding 'mount=/home/hrz' to the first quota setting does not help. Btw what would be the right mount path setting for an automounter mountpoint /home for home filesystems?
mount=%h maybe?
Here ar my test results. If I set
quota = fs:Home-Verzeichnis:noenforcing quota2 = fs:INBOX:noenforcing:mount=/var/mail
then only the first quota for Home-Verzeichnis gets reported for INBOX, which is wrong, and for all other mail folders in my home filesystem, which is correct.
horus{g033}1040:>/opt/local/sbin/dovecot --exec-mail ext /opt/local/libexec/dovecot/imap
- PREAUTH [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT THREAD=REFERENCES THREAREFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC EARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH QUOTA] Logged in as g033 a GETQUOTA "Home-Verzeichnis"
- QUOTA "Home-Verzeichnis" (STORAGE 1567704 2000000) a OK Getquota completed. b GETQUOTA INBOX
- QUOTA "INBOX" () b OK Getquota completed. c GETQUOTAROOT INBOX
- QUOTAROOT "INBOX" "Home-Verzeichnis"
- QUOTA "Home-Verzeichnis" (STORAGE 1567704 2000000) c OK Getquotaroot completed. d GETQUOTAROOT dovecot
- QUOTAROOT "dovecot" "Home-Verzeichnis"
- QUOTA "Home-Verzeichnis" (STORAGE 1567704 2000000) d OK Getquotaroot completed. ^C* BYE Server shutting down.
If I add mount=%h to my first quota rule I get no quota values at all
quota = fs:Home-Verzeichnis:noenforcing:mount=%h quota2 = fs:INBOX:noenforcing:mount=/var/mail
horus{g033}1041:>/opt/local/sbin/dovecot --exec-mail ext /opt/local/libexec/dovecot/imap
- PREAUTH [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT THREAD=REFERENCES THREAREFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC EARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH QUOTA] Logged in as g033 a GETQUOTA "Home-Verzeichnis"
- QUOTA "Home-Verzeichnis" () a OK Getquota completed. b GETQUOTA INBOX
- QUOTA "INBOX" () b OK Getquota completed. c GETQUOTAROOT INBOX
- QUOTAROOT "INBOX" c OK Getquotaroot completed. d GETQUOTAROOT dovecot
- QUOTAROOT "dovecot" d OK Getquotaroot completed. ^C* BYE Server shutting down.
My current quota values are:
horus{g033}1043:>quota -v
Disk quotas for g033 (uid 10033):
Filesystem usage quota limit timeleft files quota limit timeleft
/var/mail 85 2000000 2097150 1 100 110
/home/hrz 1567704 2000000 2200000 22633 200000 220000
Thanks, Jürgen
-- Hochschulrechenzentrum der | Mail: Juergen.Obermann@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
participants (2)
-
Juergen Obermann
-
Timo Sirainen