Franz Knipp
2014-Jun-25 07:11 UTC
IMAP sessions quit when calling MYRIGHTS on shared namespace
Hi, the IMAP connection is dropped, when I call MYRIGHTS on the root of my shared folders. Using the configuration below, the shared folders are located in shared/%%U/ # telnet localhost imap Trying ::1... Connected to localhost. Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN] Dovecot ready. . LOGIN XXXXXXX xxxx . OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE BINARY MOVE QUOTA ACL RIGHTS=texk] Logged in . MYRIGHTS shared Connection closed by foreign host. I'd expect some kind of error message instead of dropping the connection. Kind regards, Franz # 2.2.13: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-358.18.1.el6.x86_64 x86_64 CentOS release 6.4 (Final) auth_master_user_separator = * auth_verbose = yes debug_log_path = /var/log/dovecot_debug.log default_client_limit = 3500 disable_plaintext_auth = no import_environment = TZ DOVECOT_HOSTNAME lmtp_rcpt_check_quota = yes mail_gid = vmail mail_location = mdbox:~/mail mail_plugins = acl quota zlib mail_log notify mail_uid = vmail managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body environment mailbox date ihave duplicate vacation-seconds imapflags notify mbox_write_locks = fcntl namespace { list = children location = mdbox:%%h/mail prefix = shared/%%u/ separator = / subscriptions = no type = shared } namespace { hidden = yes list = no location = pop3c: prefix = POP3-MIGRATION-NS/ } namespace inbox { inbox = yes location mailbox Drafts { auto = no special_use = \Drafts } mailbox Sent { auto = no special_use = \Sent } mailbox Spam { auto = subscribe special_use = \Junk } mailbox Trash { auto = no special_use = \Trash } prefix = INBOX/ separator = / subscriptions = yes } namespace parent { hidden = yes list = no location prefix separator = / subscriptions = yes } passdb { args = /etc/dovecot/passwd.masterusers driver = passwd-file master = yes } passdb { args = /etc/dovecot/dovecot-ldap.conf.ext driver = ldap } plugin { acl = vfile acl_shared_dict = file:/var/spool/imap/dovecot-shared-mailboxes mail_log_events = delete undelete expunge copy save mailbox_create mailbox_delete mailbox_rename pop3_migration_mailbox = POP3-MIGRATION-NS/INBOX quota = dict:user::file:%h/mail/dovecot-quota quota_exceeded_message = Empfaenger Postfach ist voll (Mailbox Quota Exceeded) quota_grace = 50M quota_warning = storage=95%% quota-warning 95 %u quota_warning2 = storage=80%% quota-warning 80 %u sieve = ~/sieve/active sieve_before = /etc/dovecot/sieve_before/movespamfolder.sieve sieve_dir = ~/sieve sieve_extensions = +notify -enotify +imapflags +vacation-seconds sieve_max_actions = 1000 sieve_max_redirects = 1000 sieve_vacation_max_period = 0 sieve_vacation_min_period = 0 zlib_save = gz zlib_save_level = 6 } pop3_no_flag_updates = yes pop3_uidl_format = %v.%u pop3c_host = pop3.example.com pop3c_master_user = master pop3c_password = secret protocols = imap pop3 lmtp sieve service anvil { unix_listener anvil-auth-penalty { mode = 00 } } service auth { unix_listener auth-userdb { mode = 0777 } } service imap-login { process_limit = 3000 process_min_avail = 16 service_count = 0 } service imap { process_limit = 10240 } service lmtp { inet_listener lmtp { port = 26 } } service managesieve-login { inet_listener sieve_deprecated { port = 2000 } } service pop3-login { service_count = 0 } service pop3 { process_limit = 10240 } service quota-warning { executable = script /usr/local/bin/quota-warning.sh unix_listener quota-warning { user = vmail } } ssl_cert = </etc/pki/dovecot/certs/dovecot.pem ssl_key = </etc/pki/dovecot/private/dovecot.pem syslog_facility = local0 userdb { driver = prefetch } userdb { args = /etc/dovecot/dovecot-ldap.conf.ext driver = ldap } protocol lmtp { mail_plugins = acl quota zlib mail_log notify sieve } protocol doveadm { mail_plugins = acl quota zlib mail_log notify pop3_migration } protocol lda { mail_plugins = acl quota zlib mail_log notify sieve } protocol imap { mail_max_userip_connections = 3789 mail_plugins = acl quota zlib mail_log notify imap_acl imap_quota } -- Franz Knipp, +43 664 3980169 qnipp GmbH, Hauptstra?e 54, 7064 Oslip, ?sterreich http://qnipp.com http://qnipp.com/qnipp.vcf
Steffen Kaiser
2014-Jun-25 07:21 UTC
Re: IMAP sessions quit when calling MYRIGHTS on shared namespace
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 25 Jun 2014, Franz Knipp wrote:> > the IMAP connection is dropped, when I call MYRIGHTS on the root of my > shared folders. > > Using the configuration below, the shared folders are located in shared/%%U/ > > # telnet localhost imap > Trying ::1... > Connected to localhost. > Escape character is '^]'. > * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE > IDLE STARTTLS AUTH=PLAIN] Dovecot ready. > . LOGIN XXXXXXX xxxx > . OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE > IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS > THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN > NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH > ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE BINARY > MOVE QUOTA ACL RIGHTS=texk] Logged in > . MYRIGHTS shared > Connection closed by foreign host. > > I'd expect some kind of error message instead of dropping the connection.Did you've looked in your server log? You most likely got an abort or something like that. - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBU6p4l3z1H7kL/d9rAQIjWggAhrG+WjBhofpruWi+G9zVBjnjm18TiSvS l/Cfz6vfapk502QCvjgiQ0+OT3FUEqZvwUpu9FGlW537u+WCkJG8fmCpwrgSg7A+ jzW0Vhhszz6P7OCThEtSBypys3QFd71nuK7w20qtNEnKihErDqFiLwKd+HwzIObn vgx4F4kFnaclHZeq/i5HksmCNKVTFMqiQ9BbI4GL+EoYPBuTXkWxHofl/ukemlFw Uk9KdEqYDimfV3FWFHWF9jNEd4PypwVxWEJFeIoR2Ir1f0Tflpd5UqIvA7xqOjXg EbVRq2xT+FoNis9XeVeXEQRj0UlfTl45Z2o6Sa+PIsL+Fp4ig6iLRg==xc2E -----END PGP SIGNATURE-----
Steffen Kaiser
2014-Jun-25 07:21 UTC
IMAP sessions quit when calling MYRIGHTS on shared namespace
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 25 Jun 2014, Franz Knipp wrote:> > the IMAP connection is dropped, when I call MYRIGHTS on the root of my > shared folders. > > Using the configuration below, the shared folders are located in shared/%%U/ > > # telnet localhost imap > Trying ::1... > Connected to localhost. > Escape character is '^]'. > * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE > IDLE STARTTLS AUTH=PLAIN] Dovecot ready. > . LOGIN XXXXXXX xxxx > . OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE > IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS > THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN > NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH > ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE BINARY > MOVE QUOTA ACL RIGHTS=texk] Logged in > . MYRIGHTS shared > Connection closed by foreign host. > > I'd expect some kind of error message instead of dropping the connection.Did you've looked in your server log? You most likely got an abort or something like that. - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBU6p4l3z1H7kL/d9rAQIjWggAhrG+WjBhofpruWi+G9zVBjnjm18TiSvS l/Cfz6vfapk502QCvjgiQ0+OT3FUEqZvwUpu9FGlW537u+WCkJG8fmCpwrgSg7A+ jzW0Vhhszz6P7OCThEtSBypys3QFd71nuK7w20qtNEnKihErDqFiLwKd+HwzIObn vgx4F4kFnaclHZeq/i5HksmCNKVTFMqiQ9BbI4GL+EoYPBuTXkWxHofl/ukemlFw Uk9KdEqYDimfV3FWFHWF9jNEd4PypwVxWEJFeIoR2Ir1f0Tflpd5UqIvA7xqOjXg EbVRq2xT+FoNis9XeVeXEQRj0UlfTl45Z2o6Sa+PIsL+Fp4ig6iLRg==xc2E -----END PGP SIGNATURE-----
Franz Knipp
2014-Jun-25 09:22 UTC
IMAP sessions quit when calling MYRIGHTS on shared namespace
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 2014-06-25 09:21, schrieb Steffen Kaiser:>> the IMAP connection is dropped, when I call MYRIGHTS on the root >> of my shared folders. > Did you've looked in your server log? You most likely got an abort > or something like that.You're right. So I enabled core dumps, this is the backtrace: #0 0x00007f6857da81c2 in acl_mailbox_get_aclobj (box=<value optimized out>) at acl-mailbox.c:29 #1 0x00007f6857b97f33 in cmd_myrights (cmd=0x13ca1f0) at imap-acl-plugin.c:331 #2 0x000000000041709d in command_exec (cmd=0x13ca1f0) at imap-commands.c:158 #3 0x0000000000416150 in client_command_input (cmd=0x13ca1f0) at imap-client.c:778 #4 0x000000000041624a in client_command_input (cmd=0x13ca1f0) at imap-client.c:839 #5 0x00000000004164bd in client_handle_next_command (client=0x13c97d0) at imap-client.c:877 #6 client_handle_input (client=0x13c97d0) at imap-client.c:889 #7 0x000000000041682f in client_input (client=0x13c97d0) at imap-client.c:931 #8 0x00007f68589e62ee in io_loop_call_io (io=0x13ca100) at ioloop.c:441 #9 0x00007f68589e7497 in io_loop_handler_run_internal (ioloop=<value optimized out>) at ioloop-epoll.c:220 #10 0x00007f68589e6379 in io_loop_handler_run (ioloop=0x13a4730) at ioloop.c:488 #11 0x00007f68589e63f8 in io_loop_run (ioloop=0x13a4730) at ioloop.c:465 #12 0x00007f68589935d3 in master_service_run (service=0x13a45c0, callback=<value optimized out>) at master-service.c:566 #13 0x0000000000420088 in main (argc=1, argv=0x13a4390) at main.c:400 Hope this helps. - -- Franz Knipp, +43 664 3980169 qnipp GmbH, Hauptstra?e 54, 7064 Oslip, ?sterreich http://qnipp.com http://qnipp.com/qnipp.vcf -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlOqlN8ACgkQGRK+JW9GubbFiQCeMG711IR+4RayIpWq3KTpLCgk W7EAoIu1hcYA5TG9I/y3VvYqOQHQX1TH =jq3j -----END PGP SIGNATURE-----
Timo Sirainen
2014-Jul-03 17:57 UTC
IMAP sessions quit when calling MYRIGHTS on shared namespace
On 25.6.2014, at 10.11, Franz Knipp <franz at qnipp.com> wrote:> the IMAP connection is dropped, when I call MYRIGHTS on the root of my > shared folders. > > . MYRIGHTS sharedFixed: http://hg.dovecot.org/dovecot-2.2/rev/5f21c78cd7b2