Questions tagged [maildir]

Maildir is an email storage format where each message is kept in a separate file with a unique name, and each folder is a directory.

Maildir is a directories structure to for storing message. It is an alternative for old storage format: . Maildirs were originally implemented in the Qmail mail server, supposedly to address the inadequacies of mbox files. Instead storing it to one single huge file like mbox method, each email will be placed in one file. By storing it in multiple file,multiple processes can use maildir at the same time.

Maildir directories usually has three sub-directories named tmp, new and cur. When MDA stores an email, it place the email on tmp directory then moving it to new. The cur directory was place for email that have been seen by the user's mail-reading program.

107 questions
50
votes
7 answers

What are the practical differences between Maildir and Mbox?

Although I understand the basics of the two storage formats (1 file per email under Maildir vs. 1 single file per mailbox under mbox), I am wondering what the practical implications are here - Is one storage format more scalable than the other? Are…
olympe26
  • 509
  • 1
  • 4
  • 3
13
votes
1 answer

is it safe to remove mails on imap server with "rm"?

I use dovecot IMAP server and want to delete big unneeded mails: cd /var/spool/foouser; du -a | sort -rn > /var/tmp/du-mail-foouser.log Now I see big mails at the top and after looking at them I want to remove them. Is it safe to just call "rm…
guettli
  • 3,113
  • 14
  • 59
  • 110
13
votes
5 answers

Remove Duplicate Messages from Maildir

I've got a bunch of duplicate messages in my IMAP server's Maildir. What's the best way to remove them? Some relevant points: Shared Message-ID is usually a good enough definition of duplicate. A tiny script that removes all but one of the…
Joseph Holsten
  • 263
  • 2
  • 9
9
votes
2 answers

set mutt default Maildir folder

I have recently set up a mail server running postfix as the MTA, and dovecot as the imap/pop3 daemon. Originally, and by default on Debian, it was using the mbox format. For reliability reasons, I decided that it would be best to use the Maildir…
Ryan H
  • 1,398
  • 3
  • 14
  • 18
8
votes
2 answers

Make consistent copy of maildir

Assuming I'm using Dovecot and it's maildir format to save and access mails on a server. How do I avoid race conditions while copying a maildir? I did read some tutorial about backups and using maildir but it did no see anyone writing about this.…
JojOatXGME
  • 289
  • 3
  • 9
6
votes
2 answers

Converting a Maildir to a PST

Does anyone know of any solutions to convert a Maildir to a PST in linux? I'm able to use a program in Windows called Aid4Mail, but that requires me to pull the Maildir down from the server. I've got a bunch of users' boxes to convert, so that route…
Devar-TTY
  • 213
  • 1
  • 4
  • 12
5
votes
1 answer

Delete old e-mails from a Maildir

I am currently trying to figure out how I can delete old e-mails in one folder of a Maildir installation on a Debian server. Basically what I want to do is to run a cron job every day or so that checks a specific folder in the Maildir for old…
comfreak
  • 1,451
  • 1
  • 21
  • 32
5
votes
1 answer

Postfix/Dovecot - Multiple Domains and Multiple Linux Accounts

I have been trying to setup a new mail server to migrate from my VPS, as my host has decided to close its doors. The old server was running Exim/Courier (nearly a decade old at this point,) and I'm under the impression that Postfix/Dovecot would be…
Mookman288
  • 111
  • 1
  • 1
  • 6
4
votes
1 answer

Maildir on Debian Squeeze - Finding email boxes on /lost+found

A server that I'm helping to administrate had a severe file system problem and now there's a lot of files inside the /lost+found directory. I'd like to find the user@example.com's received and sent mail boxes. We're using Maildir email format,…
Álvaro Lemos
  • 65
  • 1
  • 5
4
votes
3 answers

Dovecot: deliver reply into same folder as replied-to message

UPDATE (2 sept 2014 13:01): Just to clarify, I'm interested in handling an incoming reply from someone else, so coming in via SMTP. If it is a reply to an email that is already in some mail folder, it should be stored in that folder too. I have a…
dr. Sybren
  • 241
  • 1
  • 5
4
votes
2 answers

New Dovecot install not allowing login, giving permissions error despite saying that permissions "appear ok"

I'm installing dovecot onto a Virtualbox VM running Ubuntu Server 64-bit 14.04 guest. Dovecot itself is being installed into a Docker container (I'm not sure that that's relevant here, but am noting it just in case). I'm having trouble getting…
J L
  • 151
  • 1
  • 4
4
votes
3 answers

How to organise Maildir subdirectories

I have a mailserver: Postfix for transfer Dovecot/IMAP for reading Maildir for storage Thunderbird as main supported client (but of course, I want to be compatible with all) Roundcube for webmail access I can't seem to find a correct way to…
Bart van Heukelom
  • 1,199
  • 5
  • 20
  • 41
4
votes
1 answer

postfix+dovecot store maildir format mail in /var/mail

I want to set up a mail server using postfix and dovecot, that stores mail using the maildir format, and I don't want any of these files to go in user's home directories. Wherever I search for how to make postfix use maildir, they just say to…
zacaj
  • 143
  • 1
  • 4
4
votes
1 answer

Detecting unreaded mails in Maildir

I like to detect unreaded mails in Maildir mailboxes. The subfolder "new" only content mails that are not already pulled from an MUA. But I want the unreaded mails within INBOX (no virtual subdirs). Any suggestions how this can be implemented? PS: I…
burnersk
  • 1,966
  • 4
  • 25
  • 38
4
votes
4 answers

What is the best filesystem for Maildir folders storage?

Projected volume size is around 1TB,. Filesystem should perform fast when dealing with LOTS of files in every folder. Snapshots support would be great, for backup purpose, but not compulsory. It will be created over a hardware RAID 0+1 system, but…
1
2 3 4 5 6 7 8