Re: maildirs (was rolling Firefox back to 2.x



Rashkae wrote:

Derek Broughton wrote:
Rashkae wrote:

Huh? Isn't it standard practice to move maildir inboxes into the user's
home directory to avoid confounding the plethora of processes that
*expect* /var/mail/* to be mbox?

Well, now, that may be - if it's "standard" though, somebody forgot to
publish the standard. I've been unable to find any good argument for one
way over the other, and this was Postfix's choice. Dovecot, otoh,
expected
the mail to be in ~/Maildir - and the two are symlinked. I don't know of
anything that "expects" /var/mail to be mboxen, but no doubt there are
silly programs like that.

How did Postfix make this choice for you exactly?

It's been a couple years since I experimented with this, so I'm fuzzy on
the details, but I do remember the postfix documentation example of a
maildir config including the use of $user/Mail or some such in the
destination directory.


It's been a couple of years since I even used postfix, but it was just the
default setting for maildir delivery at the time.

I _think_ I really want mail in the user dirs, just to keep it with the
rest on backup, but it's still most convenient to symlink /var/mail/$USER
to ~/Maildir

Convenient why exactly? Anything that's preset to look there is
probably also preset to expect mbox.

Really, that's preposterous. Most programs that deal with mail are quite
aware whether they're dealing with an mbox or a maildir. It's this little
thing called a directory. I've played with multiple MTAs (qmail, exim,
postfix and masqmail), multiple MDAs (procmail and maildrop), and multiple
IMAP servers (dovecot, courier and uw) and all of them can be configured to
have your mail anywhere you want it, but some default to /var/mail and some
default to ~/Maildir, and it's just easier to symlink the two.


Incidentally, the common belief that maildir is automatically superior
and faster to mbox is very false. Maildir is faster at sorting messages

I never suggested faster - it's more secure, because corruption of one
message can't damage another.

between directories and deleting messages, and is probably a necessity
on storage for several simultaneous users for that reason. However,
just about everything else (indexing/reading mail, and especially,
searching through the bodies of a very large mail store and backing up
your mail folders) are much faster on mbox.

Indexing, in particular, should not be much different on either system. You
index as the message comes in. Since messages don't actually change, there
should be no extra overhead either way.
--
derek


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: maildirs (was rolling Firefox back to 2.x
    ... Well, now, that may be - if it's "standard" though, somebody forgot to ... probably also preset to expect mbox. ... the common belief that maildir is automatically superior ... Maildir is faster at sorting messages ...
    (Ubuntu)
  • Re: Migrating from mbox to maildir (was Re: IMAP server alternatives)
    ... I just moved one of our mail servers over to postfix and dovecot using maildir. ... There is a wonderful tool in the ports collection that migrates an mbox file to maildir. ...
    (freebsd-questions)
  • Re: unable to open mailbox
    ... it sounds right as a search would entail opening and closing many files ... reason I went with mbox on my Dovecot server. ... T-Bird (server side search) is about 8-10 seconds wall clock time. ... chosen maildir instead of mbox, and maildir took 16-20 seconds for the same ...
    (Debian-User)
  • Re: MUA Filters vs Procmail filters[was] RE: Mailing list procmailrecipe
    ... >> Maildir format? ... >> Use tar to archive Maildir or mbox. ... >> If the only reason you are wanting to use Maildir format is because ... I think evolution can read mbox files locally, ...
    (Fedora)
  • Re: maildirmake
    ... >> I am faced with the daunting choice of mbox versus maildirs. ... after you set up the procmail script and setup either ... > you have made a maildir ... Upon installing getmail there was a configuration message basically saying ...
    (Debian-User)