sami at medusa.tutka.fi
2008-Jun-27 07:50 UTC
[Dovecot] Upgrade to 1.1 maildir & shared folders problems
Hello, We recently upgraded to Dovecot 1.1 from 1.0.5 and we are having few issues: 1) Maildir's are not created anymore for new users if they dont excits, the directories where created before, is this a configuration issue? 2) Cannot subscribe to shared folders, if currently subscribed they work fine but cannot re-subscribe, also i noticed that the control directory for the namespace is not created anymore, before it was, any ideas? //sami conf: 1.1.1: /usr/local/etc/dovecot.conf base_dir: /var/run/dovecot/ protocols: imap pop3 ssl_disable: yes disable_plaintext_auth: no login_dir: /var/run/dovecot//login login_executable(default): /usr/local/libexec/dovecot/imap-login login_executable(imap): /usr/local/libexec/dovecot/imap-login login_executable(pop3): /usr/local/libexec/dovecot/pop3-login login_greeting: ready. login_processes_count: 5 verbose_proctitle: yes first_valid_uid: 1000 mail_location: maildir:~/:INDEX=/var/dovecot/index/%u:CONTROL=/var/dovecot/control/%u mail_nfs_storage: yes mail_executable(default): /usr/local/libexec/dovecot/imap mail_executable(imap): /usr/local/libexec/dovecot/imap mail_executable(pop3): /usr/local/libexec/dovecot/pop3 mail_process_size: 1024 mail_plugins(default): acl quota imap_quota mail_plugins(imap): acl quota imap_quota mail_plugins(pop3): mail_plugin_dir(default): /usr/local/lib/dovecot/imap mail_plugin_dir(imap): /usr/local/lib/dovecot/imap mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3 imap_client_workarounds(default): outlook-idle, delay-newmail imap_client_workarounds(imap): outlook-idle, delay-newmail imap_client_workarounds(pop3): namespace: type: private separator: / location: maildir:~/:INDEX=/var/dovecot/index/%u:CONTROL=/var/dovecot/control/%u inbox: yes list: yes subscriptions: yes namespace: type: public separator: / prefix: shared/ location: maildir:/var/mail/jaetut:INDEX=/var/dovecot/jaetut/index/%u:CONTROL=/var/dovecot/jaetut/control/%u list: yes subscriptions: yes auth default: passdb: driver: sql args: /usr/local/etc/dovecot-sql.conf userdb: driver: sql args: /usr/local/etc/dovecot-sql.conf userdb: driver: prefetch plugin: quota: fs acl: vfile:/usr/local/etc/dovecot-acls
Timo Sirainen
2008-Jun-28 06:31 UTC
[Dovecot] Upgrade to 1.1 maildir & shared folders problems
On Fri, 2008-06-27 at 10:50 +0300, sami at medusa.tutka.fi wrote:> Hello, > > We recently upgraded to Dovecot 1.1 from 1.0.5 and we are having few > issues: > > 1) Maildir's are not created anymore for new users if they dont excits, > the directories where created before, is this a configuration issue?I did change the code so that the maildir creation is delayed until it's really needed. But I don't know of any bugs in this, and I can't reproduce your problem. Could you show the error messages from the log file you get when a new user tries to access the mailbox?> 2) Cannot subscribe to shared folders, if currently subscribed they work > fine but cannot re-subscribe, also i noticed that the control directory > for the namespace is not created anymore, before it was, any ideas?Again the control directory creation is delayed until it's needed. So that might not be the actual problem. Are there anything in error logs when this happens? Also could you try manually so you can see what exactly Dovecot replies to the subscribe commands? Try something like: telnet localhost 143 a login username password ?b unsubscribe shared/some-mailbox c subscribe shared/some-mailbox What are the replies? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20080628/d65288de/attachment-0002.bin>
sami at medusa.tutka.fi
2008-Jun-30 08:31 UTC
[Dovecot] Upgrade to 1.1 maildir & shared folders problems
On Sat, 28 Jun 2008, Timo Sirainen wrote:> On Fri, 2008-06-27 at 10:50 +0300, sami at medusa.tutka.fi wrote: > > Hello, > > > > We recently upgraded to Dovecot 1.1 from 1.0.5 and we are having few > > issues: > > > > 1) Maildir's are not created anymore for new users if they dont excits, > > the directories where created before, is this a configuration issue? > > I did change the code so that the maildir creation is delayed until it's > really needed. But I don't know of any bugs in this, and I can't > reproduce your problem. Could you show the error messages from the log > file you get when a new user tries to access the mailbox? >Hello, Telnet: Escape character is '^]'. * OK ready. AUTH LOGIN testi33 testi33 AUTH OK Logged in. Connection closed by foreign host. Log: Jun 30 11:14:47 [dovecot] imap-login: Login: user=<testi33>, method=PLAIN, rip=212.116.32.210, lip=212.116.32.130 Jun 30 11:14:47 [dovecot] child 23578 (imap) killed with signal 11 Not much to go on here, i remember running in to this same problem in some early 1.0 rc's, but if i remember correctly it just was fixed in a later release and started working. Any ideas how to proceed on this one? i could setup a test enviroment and run strace if needed?> > 2) Cannot subscribe to shared folders, if currently subscribed they work > > fine but cannot re-subscribe, also i noticed that the control directory > > for the namespace is not created anymore, before it was, any ideas? > > Again the control directory creation is delayed until it's needed. So > that might not be the actual problem. Are there anything in error logs > when this happens? > > Also could you try manually so you can see what exactly Dovecot replies > to the subscribe commands? Try something like: > > telnet localhost 143 > a login username password > ???b unsubscribe shared/some-mailbox > c subscribe shared/some-mailbox > > What are the replies? >if i list the mail boxes it does not show the folders under shared: * LIST (\Noselect \HasNoChildren) "/" "shared" . OK List completed. The subscribe and unsubscribe seems to be working: C unsubscribe shared/shared-folder C OK Unsubscribe completed. C subscribe shared/shared-folder C OK Subscribe completed. I get this in the logs: Jun 30 11:17:44 [dovecot] imap-login: Login: user=<username>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Jun 30 11:19:07 [dovecot] IMAP(username): fchown(/var/mail/jaetut/temp.valas.17956.7b8393cabde89cbd) failed: Operation not permitted Jun 30 11:19:07 [dovecot] IMAP(username): dovecot-acl-list creation failed: safe_mkstemp(/var/mail/jaetut/temp.valas.17956.7b8393cabde89cbd) failed: Operation not permitted It seems to be the problem is with listing the folders? as if im subscribed to the folders they work fine, but can not see the folders again in imap? The /var/mail/jaetut folder has write permission to everyone. any ideas? //sami