[Dovecot] FW: Panic: Message unexpectedly expunged from index
Nevermind. I figured it out. I left off the INDEX command. Sorry to spam the mail list :(
Here is my mail_location for future reference / searches:
mail_location = mbox:/var/spool/mail:INBOX=/var/spool/mail/%u:INDEX=/var/indexes/%u
-----Original Message----- From: dovecot-bounces+chayes=afo.net@dovecot.org [mailto:dovecot-bounces+chayes=afo.net@dovecot.org]On Behalf Of Cliff Hayes Sent: Sunday, November 15, 2009 4:02 PM To: dovecot@dovecot.org Subject: [Dovecot] Panic: Message unexpectedly expunged from index
Hello,
I just installed Fedora 11 with Dovecot 1.2.6 and am now seeing a steady stream of these in maillog:
Nov 15 15:52:03 sendmail dovecot: POP3(<username>): Panic: Message unexpectedly expunged from index Nov 15 15:52:03 sendmail dovecot: POP3(<username>): Raw backtrace: pop3 [0x4930ab] -> pop3 [0x493123] -> pop3 [0x4927b6] -> pop3 [0x43ddd4] -> pop3 [0x43de84] -> pop3(index_mail_set_seq+0x146) [0x449c16] -> pop3 [0x43e129] -> pop3(index_storage_search_next_nonblock+0x141) [0x44d5c1] -> pop3(mailbox_search_next_nonblock+0x20) [0x45b580] -> pop3(mailbox_search_next+0x26) [0x45b5d6] -> pop3 [0x419ef9] -> pop3(client_command_execute+0x666) [0x41abd6] -> pop3(client_handle_input+0x80) [0x418f80] -> pop3(io_loop_handler_run+0xbd) [0x49b02d] -> pop3(io_loop_run+0x18) [0x49a498] -> pop3(main+0x526) [0x41b286] -> /lib64/libc.so.6(__libc_start_main+0xfd) [0x3a9b61ea2d] -> pop3 [0x418809] Nov 15 15:52:03 sendmail dovecot: dovecot: child 26792 (pop3) killed with signal 6 (core dumps disabled)
I see nothing about this in the mail archives or on the internet! What could be happening and how do I fix? I'm also seeing lots of these:
Nov 15 11:26:24 sendmail dovecot: POP3(<username>): Log synchronization error at seq=12646,offset=172 for /var/spool/mail/.imap/INBOX/dovecot.index: Extension introduction for unknown id 1 Nov 15 11:26:24 sendmail dovecot: POP3(<username>): fscking index file /var/spool/mail/.imap/INBOX/dovecot.index
Here are the only things I messed with in dovecot.conf:
protocols = pop3 mail_location = mbox:/var/spool/mail:INBOX=/var/spool/mail/%u mbox_very_dirty_syncs = yes
Thanks in advance,
Cliff
On Sun, 2009-11-15 at 17:05 -0600, Cliff Hayes wrote:
Nevermind. I figured it out. I left off the INDEX command. Sorry to spam the mail list :(
Here is my mail_location for future reference / searches:
mail_location = mbox:/var/spool/mail:INBOX=/var/spool/mail/%u:INDEX=/var/indexes/%u
You shouldn't use /var/spool/mail as the mail root anyway. I suppose you're using only POP3, but if you ever happen to (even accidentally) enable IMAP access the above configuration may give access to other users' mails (although I suppose the filesystem permissions will prevent that if you're using system users).
In any case, I'd suggest something like:
mbox:/var/empty:INBOX=/var/spool/mail/%u:INDEX=/var/indexes/%u
Would it be better to just drop the mbox part? Like this:
mail_location = INBOX=/var/spool/mail/%u:INDEX=/var/indexes/%u
-----Original Message----- From: dovecot-bounces+chayes=afo.net@dovecot.org [mailto:dovecot-bounces+chayes=afo.net@dovecot.org]On Behalf Of Timo Sirainen Sent: Monday, November 16, 2009 12:04 PM To: Cliff Hayes Cc: dovecot@dovecot.org Subject: Re: [Dovecot] FW: Panic: Message unexpectedly expunged from index
On Sun, 2009-11-15 at 17:05 -0600, Cliff Hayes wrote:
Nevermind. I figured it out. I left off the INDEX command. Sorry to spam the mail list :(
Here is my mail_location for future reference / searches:
mail_location = mbox:/var/spool/mail:INBOX=/var/spool/mail/%u:INDEX=/var/indexes/%u
You shouldn't use /var/spool/mail as the mail root anyway. I suppose you're using only POP3, but if you ever happen to (even accidentally) enable IMAP access the above configuration may give access to other users' mails (although I suppose the filesystem permissions will prevent that if you're using system users).
In any case, I'd suggest something like:
mbox:/var/empty:INBOX=/var/spool/mail/%u:INDEX=/var/indexes/%u
Well, that just wouldn't work. And I don't think I really even want to make it work.
On Mon, 2009-11-16 at 16:44 -0600, Cliff Hayes wrote:
Would it be better to just drop the mbox part? Like this:
mail_location = INBOX=/var/spool/mail/%u:INDEX=/var/indexes/%u
-----Original Message----- From: dovecot-bounces+chayes=afo.net@dovecot.org [mailto:dovecot-bounces+chayes=afo.net@dovecot.org]On Behalf Of Timo Sirainen Sent: Monday, November 16, 2009 12:04 PM To: Cliff Hayes Cc: dovecot@dovecot.org Subject: Re: [Dovecot] FW: Panic: Message unexpectedly expunged from index
On Sun, 2009-11-15 at 17:05 -0600, Cliff Hayes wrote:
Nevermind. I figured it out. I left off the INDEX command. Sorry to spam the mail list :(
Here is my mail_location for future reference / searches:
mail_location = mbox:/var/spool/mail:INBOX=/var/spool/mail/%u:INDEX=/var/indexes/%u
You shouldn't use /var/spool/mail as the mail root anyway. I suppose you're using only POP3, but if you ever happen to (even accidentally) enable IMAP access the above configuration may give access to other users' mails (although I suppose the filesystem permissions will prevent that if you're using system users).
In any case, I'd suggest something like:
mbox:/var/empty:INBOX=/var/spool/mail/%u:INDEX=/var/indexes/%u
Ok, I did as you suggested. It worked. Wish I knew why. Would you happen to have a link to a basic explanation of the mail_location parameter? I looked in the wiki and I'm obviously missing some fundamental knowledge which the wiki builds on.
Thanks :)
-----Original Message----- From: dovecot-bounces+chayes=afo.net@dovecot.org [mailto:dovecot-bounces+chayes=afo.net@dovecot.org]On Behalf Of Timo Sirainen Sent: Monday, November 16, 2009 6:04 PM To: Cliff Hayes Cc: Dovecot Mailing List Subject: Re: [Dovecot] FW: Panic: Message unexpectedly expunged from index
Well, that just wouldn't work. And I don't think I really even want to make it work.
On Mon, 2009-11-16 at 16:44 -0600, Cliff Hayes wrote:
Would it be better to just drop the mbox part? Like this:
mail_location = INBOX=/var/spool/mail/%u:INDEX=/var/indexes/%u
-----Original Message----- From: dovecot-bounces+chayes=afo.net@dovecot.org [mailto:dovecot-bounces+chayes=afo.net@dovecot.org]On Behalf Of Timo Sirainen Sent: Monday, November 16, 2009 12:04 PM To: Cliff Hayes Cc: dovecot@dovecot.org Subject: Re: [Dovecot] FW: Panic: Message unexpectedly expunged from index
On Sun, 2009-11-15 at 17:05 -0600, Cliff Hayes wrote:
Nevermind. I figured it out. I left off the INDEX command. Sorry to spam the mail list :(
Here is my mail_location for future reference / searches:
mail_location = mbox:/var/spool/mail:INBOX=/var/spool/mail/%u:INDEX=/var/indexes/%u
You shouldn't use /var/spool/mail as the mail root anyway. I suppose you're using only POP3, but if you ever happen to (even accidentally) enable IMAP access the above configuration may give access to other users' mails (although I suppose the filesystem permissions will prevent that if you're using system users).
In any case, I'd suggest something like:
mbox:/var/empty:INBOX=/var/spool/mail/%u:INDEX=/var/indexes/%u
On 11/16/2009 8:19 PM, Cliff Hayes wrote:
Ok, I did as you suggested. It worked. Wish I knew why. Would you happen to have a link to a basic explanation of the mail_location parameter? I looked in the wiki and I'm obviously missing some fundamental knowledge which the wiki builds on.
You mean these?
http://wiki.dovecot.org/MailLocation
http://wiki.dovecot.org/MailLocation/Mbox
3 seconds with google...
I'm running dovecot on an ubuntu 9.04 install, connecting via thunderbird everything is working fine except for having nested folders.
I have the following set up for mail directories:- mail_location = mbox:/var/mail/%1n/%n:INBOX=/var/mail/%u
Any suggestions / pointer welcomed.
Thanks
John
On Tue, 2009-11-17 at 12:03 +0000, John Moorhouse wrote:
I'm running dovecot on an ubuntu 9.04 install, connecting via thunderbird everything is working fine except for having nested folders.
I have the following set up for mail directories:- mail_location = mbox:/var/mail/%1n/%n:INBOX=/var/mail/%u
Create them by giving them name like "nested/folder".
Yeah ... I looked at those (as I mentioned in my post). I was talking about something more basic.
I think that mbox puts all mail in one file and maildir puts each individual mail in its own file in a separate directory for each user. But the mail_location parameter is confusing to me. Like when it was suggested that I add "mbox:/var/empty:" ... to me that's like saying "we don't use mbox ... so the mbox is the bit bucket" ... which is obviously not how it works. To me "mbox:/var/spool/mail/u%" made more sense but was not recommended. That's just one example.
Thanks though :)
-----Original Message----- From: dovecot-bounces+chayes=afo.net@dovecot.org [mailto:dovecot-bounces+chayes=afo.net@dovecot.org]On Behalf Of Charles Marcus Sent: Tuesday, November 17, 2009 5:04 AM To: Cliff Hayes Cc: Dovecot Mailing List Subject: Re: [Dovecot] FW: Panic: Message unexpectedly expunged from index
On 11/16/2009 8:19 PM, Cliff Hayes wrote:
Ok, I did as you suggested. It worked. Wish I knew why. Would you happen to have a link to a basic explanation of the mail_location parameter? I looked in the wiki and I'm obviously missing some fundamental knowledge which the wiki builds on.
You mean these?
http://wiki.dovecot.org/MailLocation
http://wiki.dovecot.org/MailLocation/Mbox
3 seconds with google...
On Tue, 2009-11-17 at 08:58 -0600, Cliff Hayes wrote:
I think that mbox puts all mail in one file and maildir puts each individual mail in its own file in a separate directory for each user. But the mail_location parameter is confusing to me. Like when it was suggested that I add "mbox:/var/empty:" ... to me that's like saying "we don't use mbox ... so the mbox is the bit bucket" ... which is obviously not how it works. To me "mbox:/var/spool/mail/u%" made more sense but was not recommended. That's just one example.
Well, the way mail_location works is:
<mailbox format>:<mail root directory>[:<options>]
So you begin with "mbox:", and the next one must be a directory containing all non-INBOX mailboxes. But you were using POP3 so you didn't have anything except INBOX. But you still needed a directory, so /var/empty was one possibility. Perhaps /dev/null would have worked too. /var/spool/mail/%u anyway was mbox file, not a directory, and that would have just failed.
I think this is confusing only if you're thinking POP3-only access..
participants (4)
-
Charles Marcus
-
Cliff Hayes
-
John Moorhouse
-
Timo Sirainen