[Dovecot] Dovecot 2.0b3: mdbox with incorrect ACL file permissions crashes
Hi, played around with 'mdbox' format some more. Converted my personal mailbox with latest Dovecot and dsync from HG: dsync convert -u lo...@yourdomain.com mdbox:~/mdbox One thing I noticed is, that dsync does not take care of existing 'dovecot-acl' files, which it should migrate/copy from my point of view, but simply skips them. Anyway I copied over the ACLs manually and forgot to set the rights accordingly. So the files were owned by 'root:vmail' instead of 'vmail:vmail' in my setup. Voilà Dovecot crashed, where it should really throw a warning or ignore the owner and work with the group permissions: Mar 2 19:27:52 spectre dovecot: imap(t...@leuxner.net): acl vfile: file /var/vmail/conf.d/leuxner.net/acls/Support/Serverloft not found Mar 2 19:27:52 spectre dovecot: imap(t...@leuxner.net): acl vfile: no access to file /var/vmail/leuxner.net/tlx/mdbox/mailboxes/Support/Serverloft/dbox-Mails/dovecot-acl Mar 2 19:27:52 spectre dovecot: imap(t...@leuxner.net): Panic: file acl-cache.c: line 295 (acl_cache_update_rights): assertion failed: (obj_cache->my_current_rights != &negative_cache_entry) Mar 2 19:27:52 spectre dovecot: imap(t...@leuxner.net): Raw backtrace: /usr/lib/dovecot/libdovecot.so.0 [0x7f4d8595ffb2] -> /usr/lib/dovecot/libdovecot.so.0 [0x7f4d8596001a] -> /usr/lib/dovecot/libdovecot.so.0 (i_error+0) [0x7f4d859603c3] -> /usr/lib/dovecot/modules/lib01_acl_plugin.so [0x7f4d84da690b] -> /usr/lib/dovecot/modules/lib01_acl_plugin.so [0x7f4d84da4249] -> /usr/lib/dovecot/modules/lib01_acl_plugin.so [0 x7f4d84da4572] -> /usr/lib/dovecot/modules/lib01_acl_plugin.so [0x7f4d84da472e] -> /usr/lib/dovecot/modules/lib01_acl_plugin.so [0x7f4d84da2aba] -> /usr/lib/dovecot/modules/lib01_acl_plugin.so(acl_object_get_m y_rights+0x65) [0x7f4d84da2b85] -> /usr/lib/dovecot/modules/lib01_acl_plugin.so [0x7f4d84da8fd9] -> dovecot/imap [...@leuxner.net 84.58.106.99 STATUS](client_find_namespace+0x17f) [0x41149f] -> dovecot/imap [t l...@leuxner.net 84.58.106.99 STATUS](cmd_status+0xfc) [0x40dc2c] -> dovecot/imap [...@leuxner.net 84.58.106.99 STATUS] [0x40f9bc] -> dovecot/imap [...@leuxner.net 84.58.106.99 STATUS] [0x40fa6d] -> dovecot/imap [...@leuxner.net 84.58.106.99 STATUS](client_handle_input+0x45) [0x40fbe5] -> dovecot/imap [...@leuxner.net 84.58.106.99 STATUS](client_input+0x62) [0x410622] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_handl er_run+0xcb) [0x7f4d8596abab] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_run+0x18) [0x7f4d85969d28] -> /usr/lib/dovecot/libdovecot.so.0(master_service_run+0x13) [0x7f4d85959eb3] -> dovecot/imap [...@leuxner.n et 84.58.106.99 STATUS](main+0x191) [0x418661] -> /lib/libc.so.6(__libc_start_main+0xe6) [0x7f4d851e71a6] -> dovecot/imap [...@leuxner.net 84.58.106.99 STATUS] [0x4084e9] Mar 2 19:27:52 spectre dovecot: master: service(imap): child 30281 killed with signal 6 (core dumps disabled) Regards Thomas
Re: [Dovecot] Dovecot 2.0b3 IDLE not advertised
On 01/03/2010 19:56, Bernhard Schmidt wrote: Ed W wrote: Suggest drop them a line in the first instance? (You could check that the COMPRESS stuff made it into the released build also since Timo kindly added support for that to 2.0) Lonelycat Games has sent me a fixed build and promised to have it incorporated into the next version. Absolutely awesome. They are very good aren't they! Anyone using supported Symbian phones should definitely give Profimail a try. It's an excellent mailreader and to be honest I would like Thunderbird to support IMAP as well as Profimail! Good luck Ed W
Re: [Dovecot] Using a ramdisk but Timeout while waiting for lock for transaction log file
On Tue, 2010-03-02 at 11:50 +, Andrew Hearn wrote: > Mar 02 11:47:14 POP3(USERDELETED): Error: Timeout while waiting for lock > for transaction log file > /ramdisk/indexes/DOMAINDELETED/USERDELETED/.INBOX/dovecot.index.log > > Our NFS is rather busy, and we having other warnings to that affect, but > wouldn't have though we'd get timeouts on a ramdisk. Could your NFS be so busy that some requests can take over 3 minutes? (Or maybe the request just got completely lost?) At least in that situation that can happen: Process a locks dovecot.index.log, then starts reading/writing dovecot-uidlist file, which takes >3 minutes and in the mean time process b tries to lock dovecot.index.log but fails after 3 mins of waiting. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] dovecot 2.0b3 crash with lmtp and DNS based proxy
Timo Sirainen schrieb: > On Fri, 2010-02-26 at 17:32 +0100, Oliver Eales wrote: > >> Hello, >> i am trying to proxy a LMTP connection with version 2.0b3 >> Currently i have the problem when trying to use a named based proxy for >> LMTP the process doesn't resolve the hostname and crashes: >> > > Fixed crash and added DNS support: > > http://hg.dovecot.org/dovecot-2.0/rev/bd28e6f29711 > http://hg.dovecot.org/dovecot-2.0/rev/cc3f6adc1e0b > Thank you Timo, it is working now. But unfortunately i ran into a second problem which was already existent before the DNS fix. When the LMTP client sends the terminating dot to the LMTP proxy, the proxy stalls for about 30sec at an epoll_wait() syscall. It reads the "250 2.0.0 x" response from the backend server and then waits. When the epoll_wait timeout is reached, the proxy sends the "250 2.0.0 x" backend response to the client and the communication goes on normally. (QUIT from the client or new MAIL..) Attached is a strace excerpt of the LMTP proxy. read(11, "sdf\r\n", 4017) = 5 write(15, "sdf", 3) = 3 read(11, 0x631454, 4012)= -1 EAGAIN (Resource temporarily unavailable) read(11, 0x631454, 4012)= -1 EAGAIN (Resource temporarily unavailable) read(11, 0x631454, 4012)= -1 EAGAIN (Resource temporarily unavailable) epoll_wait(10, {{EPOLLIN, {u32=6396992, u64=6396992}}}, 8, 6) = 1 read(11, ".\r\n", 4012) = 3 write(15, "\r\n", 2)= 2 write(15, ".\r\n", 3) = 3 epoll_ctl(10, EPOLL_CTL_DEL, 11, {0, {u32=6396992, u64=6396992}}) = 0 epoll_wait(10, {{EPOLLIN, {u32=6506320, u64=6506320}}}, 8, 3) = 1 read(15, "250 2.0.0
[Dovecot] Using a ramdisk but Timeout while waiting for lock for transaction log file
Hello, Dovecot 1.2.5, centos 5.4. We are using NFS for mail, but indexes are local and on a ramdisk. However I'm getting logs such as: Mar 02 11:47:14 POP3(USERDELETED): Error: Timeout while waiting for lock for transaction log file /ramdisk/indexes/DOMAINDELETED/USERDELETED/.INBOX/dovecot.index.log Our NFS is rather busy, and we having other warnings to that affect, but wouldn't have though we'd get timeouts on a ramdisk. -- Andrew
Re: [Dovecot] 1.2.10 and questions
On Tue, 2010-03-02 at 10:47 +0100, Arkadiusz Miskiewicz wrote: > 2) "Maximum number of connections from user+IP exceeded > (mail_max_userip_connections): " > > Could it be enhanced to actually log what the limit was at that time? v2.0 shows it now: http://hg.dovecot.org/dovecot-2.0/rev/893abe2f65e0 It wasn't as easy to add to v1.2, so I didn't. signature.asc Description: This is a digitally signed message part
[Dovecot] dovecot 1.1.6 and outloook express 6 out of sync
Apologies if this has been discussed before. I have dovecot 1.1.6 installed on my qnap NAS. I connect to the imap server using outlook express 6 on my XP sp3 box. I notice, after a time, that what I see in outlook express isn't what is actually on the imap server. For example, in one of my folders, many messages are missing. On another, headers of messages start getting duplicated and the bodies don't always match the headers. If I tell outlook express to clean up and reset... i.e. remove all the headers and bodies so they get downloaded again, then everything appears again... for a little while. Likewise, if I delete all the index files on the server and restart it, all seems well for a bit. Somehow, OE is getting out of sync with the imap server. This same OE client is also talking to other non-dovecot imap servers and I don't see this out-of-sync-ness or corruption at all. I realise this is a vaguely stated problem, but I'm not a imap person and dont yet know how to narrow it down further, nor can I reliably recreate it. Has anybody seen anything like this before? Thanks. -- gyre --
Re: [Dovecot] 1.2.10 and questions
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 2 Mar 2010, Arkadiusz Miskiewicz wrote: 1) Why dovecot -n doesn't display default values? At least it didn't display http://wiki.dovecot.org/CommandLine - -a Dump configuration and exit - -n Dump all non-default configuration items and exit Regards, - -- Steffen Kaiser -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iQEVAwUBS4zgaL+Vh58GPL/cAQL+CQf+JL1ferq0xWwSzigLPPZ+y8DmQR6KK5BF 2nzAf75G8rPzro1ZRi9YgsY/lEk9L6USLLQewXgqjiNf9FtN8HyahJkVFG/dOv4z XkQAtEPxFoHSIFYjTs7HLYIkHITb1o0XgGCy76JgTikDlQcY+rUw6Q1zcB53TDIp kauyWSrv1q/rCEFBob+mDBU+42SgqR0ZjtCahATdhz7MtZUvCTe/nD3hODWRl3w8 WGCCPbhZLqQNZVY0XYcP93/qXfMEr+KepDuwxCUoEVjCrE4AHJI1AvqAUcqYwfTO epLx1uylIadO7xDcUrGM3tFjZFu9SzwfVRkj6+xOcjHG/7SzgyTZzw== =psMc -END PGP SIGNATURE-
[Dovecot] 1.2.10 and questions
Hi, 1) Why dovecot -n doesn't display default values? At least it didn't display mail_max_userip_connections(default): 20 mail_max_userip_connections(imap): 20 mail_max_userip_connections(pop3): 10 if I had set ONLY mail_max_userip_connections (to be =10) 2) "Maximum number of connections from user+IP exceeded (mail_max_userip_connections): " Could it be enhanced to actually log what the limit was at that time? -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/
Re: [Dovecot] dovecot 2.0b3 crash with lmtp and DNS based proxy
On Fri, 2010-02-26 at 17:32 +0100, Oliver Eales wrote: > Hello, > i am trying to proxy a LMTP connection with version 2.0b3 > Currently i have the problem when trying to use a named based proxy for > LMTP the process doesn't resolve the hostname and crashes: Fixed crash and added DNS support: http://hg.dovecot.org/dovecot-2.0/rev/bd28e6f29711 http://hg.dovecot.org/dovecot-2.0/rev/cc3f6adc1e0b signature.asc Description: This is a digitally signed message part
[Dovecot] ACL problem
Hey, I seem to have a problem with ACLs. I'm trying to use them on shared folders those work fine without it. But as soon as I enable the plugin and create the dovecot-acl files, they disappear. I used strace to see if there's a problem with file permissions, but it looks like Dovecot doesn't even attempt to access the dovecot-acl file in the maildir, only the dovecot-acl-list files. However, it does look for dovecot-acl files in users' home directories. Maybe the ACL plugin is enabled only for the private mailboxes, not for the public ones, but I want right the opposite. How can I achieve it? Please find my dovecot config below. Thanks, -- cc # 1.2.4: /etc/dovecot/dovecot.conf # OS: Linux 2.6.26-2-686 i686 Debian 5.0.4 log_timestamp: %Y-%m-%d %H:%M:%S protocols: imaps ssl: required ssl_cert_file: /etc/ssl/certs/imapd.pem ssl_key_file: /etc/ssl/private/imapd.key.pem login_dir: /var/run/dovecot/login login_executable: /usr/lib/dovecot/imap-login mail_privileged_group: mail mbox_write_locks: fcntl dotlock mail_plugins: acl namespace: type: private location: mbox:%h:INBOX=/var/mail/%u inbox: yes list: yes subscriptions: yes namespace: type: public separator: / prefix: Logs/ location: maildir:/data/mail/logs:LAYOUT=fs:INDEX=~/.imap- public/Logs:CONTROL=~/.imap-public/Logs list: yes auth default: passdb: driver: pam userdb: driver: passwd plugin: acl: vfile signature.asc Description: This is a digitally signed message part.