[Dovecot] Deliver core dump in b13 (hg 20080102)
Hi there
I'm redirecting e-mails from mikkel@euro123.dk to another account (mikkel2@euro123.dk) using sieves "redirect" with sieve 1.1.3. The e-mail is redirected just fine. But deliver still creates a core dump and returns an "e-mail undeliverable" to the sending account (even though delivery is successful).
My .dovecot.sieve contains just this: redirect "mikkel2@euro123.dk"; keep;
As stated before the e-mail is both forwarded and delivered locally just fine. But the sending account receives this error: "mikkel@euro123.dk: Command died with signal 6: "/opt/freeware/dovecot-20080102/libexec/dovecot/deliver""
Also deliver.log shows some errors (shown below).
The nfs_flush_file_handle_cache_dir error makes me wonder - seems like it tries to delete the homedir of the accounts maildir storage.
Also it seems to me like a minor error since the delivery functions as it should, apart from the delivery error it returns and the core dump.
Regards, Mikkel
[root@mta01]# tail -f /log/deliver.log | grep @euro123.dk deliver(mikkel@euro123.dk): Jan 07 22:20:02 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:02 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:02 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:02 Info: msgid=47829780.20802@euro123.dk: forwarded to mikkel2@euro123.dk deliver(mikkel@euro123.dk): Jan 07 22:20:03 Info: msgid=47829780.20802@euro123.dk: saved mail to INBOX deliver(mikkel@euro123.dk): Jan 07 22:20:03 Panic: file index-mail.c: line 1042 (index_mail_close): assertion failed: (!mail->data.destroying_stream) deliver(mikkel@euro123.dk): Jan 07 22:20:03 Error: Raw backtrace: 0x855c0 -> 0x4decc -> 0x4e360 -> 0x55204 -> 0x2266c -> 0x2040c deliver(mikkel@euro123.dk): Jan 07 22:20:04 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:05 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:05 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:05 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:05 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:05 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:05 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:05 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:06 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:06 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:06 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:06 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:06 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:06 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:06 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:06 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:07 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:07 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:07 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:07 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:07 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:07 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:07 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:08 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:08 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:08 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:08 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:08 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:08 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:09 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:09 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:09 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:09 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:09 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:09 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:10 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:10 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:10 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:10 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:10 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:10 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:10 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:10 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:11 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:11 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:11 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:11 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:11 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:11 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:11 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:12 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:12 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:12 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:12 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:12 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:12 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:12 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:12 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:13 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:13 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:13 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:13 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:13 Error: nfs_flush_file_handle_cache_dir: rmdir(/nfs/euro123.dk/mikkel) failed: Invalid argument deliver(mikkel@euro123.dk): Jan 07 22:20:13 Info: msgid=20080107212004.782C817DB8@mta01.euro123.dk: forwarded to mikkel2@euro123.dk deliver(mikkel@euro123.dk): Jan 07 22:20:14 Info: msgid=20080107212004.782C817DB8@mta01.euro123.dk: saved mail to INBOX deliver(mikkel@euro123.dk): Jan 07 22:20:14 Panic: file index-mail.c: line 1042 (index_mail_close): assertion failed: (!mail->data.destroying_stream) deliver(mikkel@euro123.dk): Jan 07 22:20:14 Error: Raw backtrace: 0x855c0 -> 0x4decc -> 0x4e360 -> 0x55204 -> 0x2266c -> 0x2040c
On Mon, 2008-01-07 at 23:05 +0100, mikkel@euro123.dk wrote:
The “nfs_flush_file_handle_cache_dir” error makes me wonder - seems like it tries to delete the homedir of the accounts maildir storage.
Yes, because unfortunately that's the only way to flush NFS file handle cache. Although if it gives this error, it probably doesn't even get flushed. What OS do you use? Any ideas why rmdir() would return "Invalid argument" instead of the usual "File exists" or "Directory not empty"?
msgid=20080107212004.782C817DB8@mta01.euro123.dk: saved mail to INBOX deliver(mikkel@euro123.dk): Jan 07 22:20:14 Panic: file index-mail.c: line 1042 (index_mail_close): assertion failed: (!mail->data.destroying_stream)
I'm still unable to reproduce this myself.. It most likely requires something specific in dovecot.index.cache file. Is this with maildir?
On Thu, 2008-01-10 at 14:25 +0200, Timo Sirainen wrote:
On Mon, 2008-01-07 at 23:05 +0100, mikkel@euro123.dk wrote:
The “nfs_flush_file_handle_cache_dir” error makes me wonder - seems like it tries to delete the homedir of the accounts maildir storage.
Yes, because unfortunately that's the only way to flush NFS file handle cache. Although if it gives this error, it probably doesn't even get flushed. What OS do you use? Any ideas why rmdir() would return "Invalid argument" instead of the usual "File exists" or "Directory not empty"?
Ah, it's because it's the current directory. It would be better if home dir wouldn't be the same as mail dir (http://wiki.dovecot.org/VirtualUsers#homedirs), but I'll see if I can do something about this.
On Thu, 2008-01-10 at 14:35 +0200, Timo Sirainen wrote:
On Thu, 2008-01-10 at 14:25 +0200, Timo Sirainen wrote:
On Mon, 2008-01-07 at 23:05 +0100, mikkel@euro123.dk wrote:
The “nfs_flush_file_handle_cache_dir” error makes me wonder - seems like it tries to delete the homedir of the accounts maildir storage.
Yes, because unfortunately that's the only way to flush NFS file handle cache. Although if it gives this error, it probably doesn't even get flushed. What OS do you use? Any ideas why rmdir() would return "Invalid argument" instead of the usual "File exists" or "Directory not empty"?
Ah, it's because it's the current directory. It would be better if home dir wouldn't be the same as mail dir (http://wiki.dovecot.org/VirtualUsers#homedirs), but I'll see if I can do something about this.
On Sat, January 12, 2008 10:48 am, Timo Sirainen wrote:
On Thu, 2008-01-10 at 14:35 +0200, Timo Sirainen wrote:
Ah, it's because it's the current directory. It would be better if home dir wouldn't be the same as mail dir (http://wiki.dovecot.org/VirtualUsers#homedirs), but I'll see if I can do something about this.
Thanks, thats great:)
I'll test it on monday to see if that fixed it completely.
But isn't this fix masking the real error; namely that either I my directory layout isn't propper or Dovecot is flushing the wrong directory in this specific case when using Sieve "redirect" (home directory is then flushed instead of the maildir directory that it normally flushes).
Also I wonder if there is a potential issue if somebody decides to use "/" as the home-directory (probably wouldn't happen). Then I guess changing to the parent directory isn't possible. I tried to look at your commit but my C-skills (don't have any) aren't quite enough to decide whether you took this into consideration already:)
Regards, Mikkel
On Sat, January 12, 2008 6:39 pm, mikkel@euro123.dk wrote:
On Sat, January 12, 2008 10:48 am, Timo Sirainen wrote:
On Thu, 2008-01-10 at 14:35 +0200, Timo Sirainen wrote:
Ah, it's because it's the current directory. It would be better if home dir wouldn't be the same as mail dir (http://wiki.dovecot.org/VirtualUsers#homedirs), but I'll see if I can do something about this.
But isn't this fix masking the real error; namely that either I my directory layout isn't propper or Dovecot is flushing the wrong directory in this specific case when using Sieve "redirect" (home directory is then flushed instead of the maildir directory that it normally flushes).
Hi Timo
What's your take on this? Should I change the layout (and what layout should I use then) or is this a Dovecot bug? My layout is like the first example show here (Mail directory under home): http://wiki.dovecot.org/VirtualUsers#homedirs
(The new bug is described here: http://dovecot.org/list/dovecot/2008-January/028062.html)
Do you need any further information?
Regards, Mikkel
On Sat, January 12, 2008 10:48 am, Timo Sirainen wrote:
On Thu, 2008-01-10 at 14:35 +0200, Timo Sirainen wrote:
Ah, it's because it's the current directory. It would be better if home dir wouldn't be the same as mail dir (http://wiki.dovecot.org/VirtualUsers#homedirs), but I'll see if I can do something about this.
It fixed the flushing errors, but it still returns a delivery report saying "e-mail undeliverable" and deliver creates a core dump (even though the e-mail is correctly delivered to both accounts).
The e-mail is delivered, but afterwards Deliver fails and returns the error (listed in the bottom of this e-mail). Beats me why.
You wrote in a previous mail:
msgid=<20080107212004.782C817DB8 at mta01.euro123.dk>: saved mail to INBOX deliver(mikkel at euro123.dk): Jan 07 22:20:14 Panic: file index-mail.c: line 1042 (index_mail_close): assertion failed: (!mail->data.destroying_stream) I'm still unable to reproduce this myself. It most likely requires something specific in dovecot.index.cache file. Is this with maildir?
I used to get this a lot in b9-b11 (don't know about b12 since it wouldn't compile on Solaris). But then it disapeared completely in b13 except in this specific case.
Regards, Mikkel
[root@mta01]# tail -f /local/log/deliver.log | grep @euro123.dk deliver(mikkel@euro123.dk): Jan 13 10:44:52 Info: msgid=4789DD91.1050405@euro123.dk: forwarded to mikkel2@euro123.dk deliver(mikkel@euro123.dk): Jan 13 10:44:53 Info: msgid=4789DD91.1050405@euro123.dk: saved mail to INBOX deliver(mikkel@euro123.dk): Jan 13 10:44:53 Panic: file index-mail.c: line 1042 (index_mail_close): assertion failed: (!mail->data.destroying_stream) deliver(mikkel@euro123.dk): Jan 13 10:44:53 Error: Raw backtrace: 0x85b28 -> 0x4e1fc -> 0x4e690 -> 0x554cc -> 0x22880 -> 0x205b8 deliver(mikkel2@euro123.dk): Jan 13 10:44:54 Info: msgid=4789DD91.1050405@euro123.dk: saved mail to INBOX
On Sun, 2008-01-13 at 11:01 +0100, mikkel@euro123.dk wrote:
deliver(mikkel@euro123.dk): Jan 13 10:44:53 Panic: file index-mail.c: line 1042 (index_mail_close): assertion failed: (!mail->data.destroying_stream)
So this only happens with deliver? Does it break if you don't have Sieve plugin loaded? What about other plugins?
I've tried to reproduce this a few times but haven't been able to. So if you could figure out what configuration/setting specifically causes this crash (or does it crash even with default configuration?) that would help fixing it..
On Wed, January 16, 2008 5:37 pm, Timo Sirainen wrote:
On Sun, 2008-01-13 at 11:01 +0100, mikkel@euro123.dk wrote:
deliver(mikkel@euro123.dk): Jan 13 10:44:53 Panic: file index-mail.c: line 1042 (index_mail_close): assertion failed: (!mail->data.destroying_stream)
So this only happens with deliver? Does it break if you don't have Sieve plugin loaded? What about other plugins?
There are no problems what so ever except in this very specific situation. Sieve works flawlessly in other situations. I've specificly operations such as "fileinto" and "vacation" to see if they would cause an error as well - which they did not.
But when I use "redirect" it returns the "e-mail undeliverable" message to the sender. Even though the e-mail gets forwarded as expected. It works the same whether I combine "redirect" with "keep" and the result is always the same no matter what account I'm testing.
Deliver does something after forwading the message which makes it fail. For some reason it then thinks that the delivery didn't happen and returns an error to the sender. That error states "mikkel@euro123.dk: Command died with signal 6: "/opt/freeware/dovecot-20080113/libexec/dovecot/deliver""
This has got to narrow the cause of error down to one very specific part of the code (after delivery but before passing the OK signal or whatever it does to tell that the delivery was successfull).
I looks like the faillure happens when deliver tries to update the index of the account that the e-mails is being forwarded to. I figured that it somehow couldn't find the directory and that is what causes the error. But that's not the case since maildirsize gets updated correctly on that account (the account that the mail is being forwarded to). Also the dirlist shows me that dhe index files have ben updated at the same time as maildirsize.
ls -l drwx------ 2 vmail vmail 4 Jan 16 21:00 cur -rw------- 1 vmail vmail 114 Jan 16 21:00 dovecot-uidlist -rw------- 1 vmail vmail 216 Jan 16 21:00 dovecot.index -rw------- 1 vmail vmail 17408 Jan 16 21:00 dovecot.index.cache -rw------- 1 vmail vmail 1408 Jan 16 21:00 dovecot.index.log -rw------- 1 vmail vmail 38 Jan 16 21:00 maildirsize drwx------ 2 vmail vmail 2 Jan 16 21:00 new -rw------- 1 vmail vmail 17 Jan 16 20:48 subscriptions drwx------ 2 vmail vmail 2 Jan 16 21:12 tmp.
Would the deliver core dump be of any interest to you? It places the dump in the home directory where the sieve file of the forwarding account is also located.
I've tried to reproduce this a few times but haven't been able to. So if you could figure out what configuration/setting specifically causes this crash (or does it crash even with default configuration?) that would help fixing it..
Here is my dovecot configuration:
/opt/freeware/dovecot-20080113/sbin/dovecot -c /local/config/dovecot.conf -n # 20080113: /local/config/dovecot.conf Warning: fd limit 256 is lower than what Dovecot can use under full load (more than 768). Either grow the limit or change login_max_processes_count and max_mail_processes settings log_path: /local/log/dovecot.run info_log_path: /local/log/dovecot.run protocols: imap pop3 ssl_disable: yes disable_plaintext_auth: no login_dir: /opt/freeware/dovecot-20080113/var/run/dovecot/login login_executable(default): /opt/freeware/dovecot-20080113/libexec/dovecot/imap-login login_executable(imap): /opt/freeware/dovecot-20080113/libexec/dovecot/imap-login login_executable(pop3): /opt/freeware/dovecot-20080113/libexec/dovecot/pop3-login login_process_per_connection: no verbose_proctitle: yes first_valid_uid: 105 first_valid_gid: 105 mmap_disable: yes mail_nfs_storage: yes mail_nfs_index: yes mail_executable(default): /opt/freeware/dovecot-20080113/libexec/dovecot/imap mail_executable(imap): /opt/freeware/dovecot-20080113/libexec/dovecot/imap mail_executable(pop3): /opt/freeware/dovecot-20080113/libexec/dovecot/pop3 mail_plugins(default): quota imap_quota trash mail_plugins(imap): quota imap_quota trash mail_plugins(pop3): quota mail_plugin_dir(default): /opt/freeware/dovecot-20080113/lib/dovecot/imap mail_plugin_dir(imap): /opt/freeware/dovecot-20080113/lib/dovecot/imap mail_plugin_dir(pop3): /opt/freeware/dovecot-20080113/lib/dovecot/pop3 imap_client_workarounds(default): outlook-idle delay-newmail tb-extra-mailbox-sep imap_client_workarounds(imap): outlook-idle delay-newmail tb-extra-mailbox-sep imap_client_workarounds(pop3): pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh auth default: mechanisms: plain login digest-md5 cram-md5 apop ntlm cache_size: 4096 cache_ttl: 120 passdb: driver: sql args: /local/config/dovecot-sql.conf userdb: driver: prefetch userdb: driver: sql args: /local/config/dovecot-sql.conf socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: vmail plugin: quota: maildir quota_rule2: Trash:storage=10M:messages=100 trash: /local/config/dovecot-trash.conf
Regards, Mikkel
On Wed, 2008-01-16 at 21:16 +0100, mikkel@euro123.dk wrote:
On Wed, January 16, 2008 5:37 pm, Timo Sirainen wrote:
On Sun, 2008-01-13 at 11:01 +0100, mikkel@euro123.dk wrote:
deliver(mikkel@euro123.dk): Jan 13 10:44:53 Panic: file index-mail.c: line 1042 (index_mail_close): assertion failed: (!mail->data.destroying_stream)
On Thu, January 10, 2008 1:25 pm, Timo Sirainen wrote:
Hi Timo, thanks for looking into this.
On Mon, 2008-01-07 at 23:05 +0100, mikkel@euro123.dk wrote: Yes, because unfortunately that's the only way to flush NFS file handle cache. Although if it gives this error, it probably doesn't even get flushed. What OS do you use? Any ideas why rmdir() would return "Invalid argument" instead of the usual "File exists" or "Directory not empty"?
Right, I didn't realize this initially though I believe you have told me once before that rmdir is used for flushing:)
msgid=20080107212004.782C817DB8@mta01.euro123.dk: saved mail to INBOX deliver(mikkel@euro123.dk): Jan 07 22:20:14 Panic: file index-mail.c: line 1042 (index_mail_close): assertion failed: (!mail->data.destroying_stream)
I'm still unable to reproduce this myself.. It most likely requires something specific in dovecot.index.cache file. Is this with maildir?
I'm sorry I wasn't more specific initially. I guess I took it for some obvious bug (not realizing it's the clear cache mechanism) that wasn't specific to my setup.
It's Maildir using NFS (both indexes and storage) under Solaris 10 (sparc). I can post the full configuration if needed.
Cut from your other post:
Ah, it's because it's the current directory. It would be better if home dir wouldn't be the same as mail dir (http://wiki.dovecot.org/VirtualUsers#homedirs), but I'll see if I can do something about this.
Actually I am using a different directory; home=/nfs/euro123.dk/mikkel, mail=/nfs/euro123.dk/mikkel/Maildir
And normally everything works as expected, except in this specific example using sieve to forward. The .dovecot.sieve file is located in the homedir (/nfs/euro123.dk/mikkel/.dovecot.sieve) and for some reason dovecot then tries to flush the directory in which the sieve file is located, instead of the maildir directory.
Is this a bug or should I change the directory layout?
Regards, Mikkel
participants (2)
-
mikkel@euro123.dk
-
Timo Sirainen