Re: [Dovecot] FW: Panic: Message unexpectedly expunged from index
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.. signature.asc Description: This is a digitally signed message part
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...
Re: [Dovecot] FW: Panic: Message unexpectedly expunged from index
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@dovecot.org [mailto:dovecot-bounces+chayes=afo@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...
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 signature.asc Description: This is a digitally signed message part
Re: [Dovecot] FW: Panic: Message unexpectedly expunged from index
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@dovecot.org [mailto:dovecot-bounces+chayes=afo@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
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@dovecot.org [mailto:dovecot-bounces+chayes=afo@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 signature.asc Description: This is a digitally signed message part
Re: [Dovecot] FW: Panic: Message unexpectedly expunged from index
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@dovecot.org [mailto:dovecot-bounces+chayes=afo@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@dovecot.org [mailto:dovecot-bounces+chayes=afo@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