Jaldhar H. Vyas | 1 Aug 23:23 2003
Picon

Re: corrupt mbox, mailboxes not found, and message read status

On Tue, 29 Jul 2003, Jared wrote:

> I'm running dovecot 0.99.10-0.rc2 deb packages for Debian Woody from
> braincells.com.

Yikes! That reminds me I never uploaded the backport of 0.99.10 final.
(It's been in sid for a long time.)  The packages are up there now.

--

-- 
Jaldhar H. Vyas <jaldhar <at> debian.org>
La Salle Debain - http://www.braincells.com/debian/

Alejandro Martinez | 2 Aug 16:25 2003
Picon

Confusion

Hi, I have a great confusion about mbox, maildir.
I use a passwd-file to authenticate users, because I want to use non local users.

I have a test user in that file that is this:
test:VGRAafc3NHJwI:502:100:Usuario Virtual:/var/spool/mail/virtual/test:/no/shell

I create inside /var/spool/mail/virtual/test a folder Maildir and inside Maildir
/var/spool/mail/virtual/test/Maildir/cur/
/var/spool/mail/virtual/test/Maildir/new/
/var/spool/mail/virtual/test/Maildir/tmp/

I get an error when I login to the server

admin <at> slk90 /$ telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
* OK dovecot ready.
. login test test
. OK Logged in.
Connection closed by foreign host.

The /var/spool/mail/error is this

 "Aug  2 08:46:46 slk90 imap(test): Failed to create storage with data: /var/spool/mail/virtual/test/Maildir"

I've tried setting default_mail_env = maildir:~/Maildir and mbox:~/Maildir, but nothing work.

Any help ?
Regards.
(Continue reading)

Moe Webber | 2 Aug 16:58 2003
Picon

Re: corrupt mbox, mailboxes not found, and message read status

On Thu, Jul 31, 2003 at 05:58:32AM +0300, Timo Sirainen wrote:
> X-Keywords have been used for a long time now. It's possible to set
> \Seen flag for messages downloaded with POP3, but I don't know if it's
> worth the trouble. Who uses POP3 and IMAP mixed anyway?

Why does dovecot support POP3 if you don't intend that kind of usage?

Timo Sirainen | 2 Aug 18:53 2003
Picon
Picon

Re: corrupt mbox, mailboxes not found, and message read status

On Sat, 2003-08-02 at 17:58, Moe Webber wrote:
> On Thu, Jul 31, 2003 at 05:58:32AM +0300, Timo Sirainen wrote:
> > X-Keywords have been used for a long time now. It's possible to set
> > \Seen flag for messages downloaded with POP3, but I don't know if it's
> > worth the trouble. Who uses POP3 and IMAP mixed anyway?
> 
> Why does dovecot support POP3 if you don't intend that kind of usage?

It's useful to support different users who use either POP3 or IMAP, but
a same user using both of them can't get really sensible behaviour in
any case.

But I guess using POP3 normally and IMAP webmail occationally is good
enough excuse to save the \Seen flags.

Timo Sirainen | 2 Aug 18:56 2003
Picon
Picon

Re: Confusion

On Sat, 2003-08-02 at 17:25, Alejandro Martinez wrote:
>  "Aug  2 08:46:46 slk90 imap(test): Failed to create storage with data: /var/spool/mail/virtual/test/Maildir"

Your settings looked fine, but are the directory permissions correct?

> I've tried setting default_mail_env = maildir:~/Maildir and mbox:~/Maildir, but nothing work.

"default_mail_env = maildir:~/Maildir" should give you a better error
message. Possibly about permissions, missing directories or something.

Timo Sirainen | 4 Aug 02:35 2003
Picon
Picon

Some benchmarking

So I finally got the new mail caching code fully working in normal 
conditions. Index rebuilding and some error correction still needs a 
bit work. mbox is also still broken. Anyway, I was mostly interested 
how fast Dovecot now works with my 367000 LKML mails, but thought I'd 
have to get something to compare the results against, so here's Dovecot 
vs. Courier.

Results against older Dovecot would have been pretty boring, the older 
Dovecot could never perform threading without  opening all the files 
and reading References-headers from them. Sorting would could have been 
done from cache if IMAP ENVELOPEs were cached, I'd estimate maybe 2-3x 
larger user CPU usage with it and a _lot_ larger cache file since it 
would have stored from, to, etc. fields in it.

Results against Cyrus would be interesting. I'll probably do those 
sometimes later too.. Last I checked, Cyrus was very slow at inserting 
the mails into it's database, it took .. was it 1-3 hours to insert all 
those mails, while a simple copying took maybe 20 mins. Anyway, Cyrus's 
caching is pretty dummy as well so I'd expect Dovecot to be many times 
faster in threading and likely somewhat faster in sorting.

Maildir: Linux Kernel Mailing List with 367918 mails, total of 1,9GB.

NOTE: The total times are heavily affected by disk I/O. In these tests the
index files are cached in memory by OS. The files themselves are mostly
uncached (I flushed the cache by reading another 2GB file 3 times).

System: 1GHz AMD Athlon CPU, 1GB RAM, 120GB IDE disk,
(Continue reading)

Charlie Allom | 4 Aug 05:25 2003

why wont /usr/pkg/libexec/dovecot/imap see my Maildir

When I invoke /usr/pkg/libexec/dovecot/imap from the command loine on
the mail host, it logs me in, but won't see my emails:

13:22 yeled <at> lazy:~$ /usr/pkg/libexec/dovecot/imap
* PREAUTH [CAPABILITY IMAP4rev1 SORT THREAD=REFERENCES MULTIAPPEND
* UNSELECT LITERAL+ IDLE CHILDREN LISTEXT LIST-SUBSCRIBED] Logged in
* as yeled
0 select inbox
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)]
* Flags permitted.
* 0 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1059959635] UIDs valid
* OK [UIDNEXT 1] Predicted next UID
0 OK [READ-WRITE] Select completed.

I know I have many emails in there, and I can see them when I login
via telnet localhost 443.

Any tips? would be nice to use fetchmail with ssh here.

  C.
--

-- 
 charlie <at> rubberduck.com - Melbourne, Australia
 http://rubberduck.com/~yeled/
 PGP: 0x14AA7941 || finger yeled <at> lazy.spodder.com
Timo Sirainen | 4 Aug 05:45 2003
Picon
Picon

Re: why wont /usr/pkg/libexec/dovecot/imap see my Maildir

On Mon, 2003-08-04 at 06:25, Charlie Allom wrote:
> When I invoke /usr/pkg/libexec/dovecot/imap from the command loine on
> the mail host, it logs me in, but won't see my emails:
..
> I know I have many emails in there, and I can see them when I login
> via telnet localhost 443.

I'd guess it's because you have MAIL environment pointing to some mbox
file. Try "unset MAIL", or "export MAIL=~/Maildir" before running imap.
Note that imap binary doesn't read your configuration file at all, so if
you've changed any defaults you'll have to give them in environment.

Hmm. Maybe it would be useful to add an option to dovecot binary to read
configuration (which it does always anyway) and then exec() a given
binary with the configuration moved into environment. Something like:

dovecot --exec /usr/pkg/libexec/imap/imap

Or something even simpler, since it can read the binary path from
configuration anyway:

dovecot --exec-mail imap

Another optional feature that I was thinking is to allow users to
override default settings using ~/.dovecotrc file. It would be mostly
useful for namespace configuration and maybe setting some
client-specific workarounds or optimizations.

Charlie Allom | 4 Aug 06:25 2003

Re: why wont /usr/pkg/libexec/dovecot/imap see my Maildir

On Mon, Aug 04, 2003 at 06:45:56AM +0300, Timo Sirainen wrote:
> On Mon, 2003-08-04 at 06:25, Charlie Allom wrote:
> > When I invoke /usr/pkg/libexec/dovecot/imap from the command loine on
> > the mail host, it logs me in, but won't see my emails:
> ..
> > I know I have many emails in there, and I can see them when I login
> > via telnet localhost 443.
> 
> I'd guess it's because you have MAIL environment pointing to some mbox
> file. Try "unset MAIL", or "export MAIL=~/Maildir" before running imap.
> Note that imap binary doesn't read your configuration file at all, so if
> you've changed any defaults you'll have to give them in environment.

You're right. I thought it would be along these lines .. Thanks!

> Hmm. Maybe it would be useful to add an option to dovecot binary to read
> configuration (which it does always anyway) and then exec() a given
> binary with the configuration moved into environment. Something like:

Well I'll leave this up to you, you're doing very well so far :)

--

-- 
 charlie <at> rubberduck.com - Melbourne, Australia
 http://rubberduck.com/~yeled/
 PGP: 0x14AA7941 || finger yeled <at> lazy.spodder.com
Matthias Andree | 4 Aug 10:43 2003
Picon
Picon

Re: corrupt mbox, mailboxes not found, and message read status

Timo Sirainen <tss <at> iki.fi> writes:

> X-Keywords have been used for a long time now. It's possible to set
> \Seen flag for messages downloaded with POP3, but I don't know if it's
> worth the trouble. Who uses POP3 and IMAP mixed anyway?

I do. In fact, many people do that handle their mail from various
sites. If you claim Courier-IMAP compatibility, you'll have to do the
marking, for Courier-IMAP does it, too.

--

-- 
Matthias Andree


Gmane