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
2
votes
1 answer

How do I convert all accounts on a dovecot IMAP server from one Maildir layout to another?

I am currently running dovecot 2.x on a server with the following layout for mailboxes: mail_location = maildir:~/Maildir I would like to change the layout to this format: mail_location = maildir:~/Maildir:LAYOUT=fs:INBOX=~/Maildir/INBOX Is there…
reedog117
  • 183
  • 1
  • 3
  • 12
2
votes
2 answers

Making sure Postfix MDA and Dovecot IMAP understand mailbox location?

I want to setup Postfix and Dovecot with Postfix as the SMTP MTA (mail transfer agent) and the MDA (mail delivery agent) and Dovecot just as the IMAP server, but I want to make sure that they each understand the mailbox location, and I am not…
user981178
  • 445
  • 1
  • 3
  • 13
2
votes
1 answer

Migrated mbox to Maildir, how to avoid mail client from re-downloading emails?

We have moved emails in a postfix server from huge mbox files to MailDir, but when trying out one Outlook client, found that it redownloads all mail as duplicate unread messages.
2
votes
1 answer

How to enable maildir in Dovecot deliver with Sendmail local_procmail

There is documentation around on how to make /usr/local/bin/procmail work with delivering to a maildir. However, it is my understanding that it is also possible to avoid procmail altogether, and have sendmail's local_procmail FEATURE call…
cnst
  • 13,848
  • 9
  • 54
  • 76
2
votes
1 answer

Using rdiff-backup for incremental backups of large compressed archive files?

I am researching a remote off-site backup strategy. The major limitation is that the upstream pipe is only ~50 kb/s, so with that in mind the incremental backup capabilities using file differentials of rdiff-backup seemed like the proper tool. In a…
kilolima
  • 121
  • 4
2
votes
2 answers

Permissions of Maildir and subdirs (.INBOX.Sent etc)

What should the correct are? Now there is 777 and I know that it's very stupid, but if I ask you before change them to prevent from permission error by time sending/receiving emails. Thank you.
Vaska
  • 57
  • 3
2
votes
2 answers

How to create default subfolders using procmail with Maildir (and postfix) that work with MUA's?

I have a procmail setup and want to have a Spam folder that works with MUA's. I found this tutorial http://www.cyberciti.biz/faq/how-do-i-move-spam-mail-to-spam-folder/ but it doesn't work as expected. I want to be able to open a mail client and see…
user101130
2
votes
2 answers

removing spam between mail server and client

My postfix was badly configured and let a lot of spam emails through to an account. I've fixed postfix now so it's become a much better spam filter, and almost no new spam is getting through. However, there are still a lot of old spam emails on the…
Verity
  • 23
  • 2
2
votes
1 answer

Migrate Maildir between courier and dovecot servers

I have several tarballs that make up all the previous emails for two or three accounts on a mail server. This machine we be shut down within a few weeks and so I need to migrate all the previously subscribed IMAP folders to the new server. The old…
DeaconDesperado
  • 223
  • 2
  • 10
2
votes
2 answers

Can't sent to Maildir : postfix

I set up /etc/postfix/main.cf smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) biff = no append_dot_mydomain = no readme_directory =…
freddiefujiwra
  • 1,667
  • 5
  • 25
  • 34
2
votes
1 answer

How to create maildir with unix script?

I want to create maildirs with unix script, so question is how to create directory like in this example: example.com/j/o/h/john-2011.04.07.09.35.49/ if i have only three arguments - mailserver (example.com) and username (john) and time I don`t…
user77473
  • 41
  • 1
  • 3
2
votes
2 answers

Best Practice: Migrating Email Boxes (maildir format)

So here's the situation. I've got about 20,000 maildir email accounts chewing up a several hundred GB of space on our email server. Maildir by nature keeps thousands of tiny a****** little files, instead of one .mbox file or the like... So i…
grufftech
  • 6,760
  • 4
  • 37
  • 37
2
votes
1 answer

Convert outlook PST to IMAP Maildir

I'm currently migrating users from an Exchange to an IMAP Postfix server using Maildir format mailboxes. For now i've been copying mails on outlook from the PST to the new IMAP mailbox, but it's taking REALLY long (almost 30min for 100 mails !). Is…
ack__
  • 143
  • 1
  • 8
2
votes
2 answers

Error with procmail script to use Maildir format

I have this code in /etc/procmailrc: DROPPRIVS=yes DEFAULT=$HOME/Maildir/ :0 * ? /usr/bin/test -d $DEFAULT || /bin/mkdir $DEFAULT { } :0 E { # Bail out if directory could not be created EXITCODE=127 …
bradlis7
  • 353
  • 1
  • 5
  • 17
2
votes
2 answers

Spamassassin one-liner to tag & move mail with an X-Spam-Flag: YES to a new directory?

Say you have a directory with tens of thousands of messages in it. And you want to separate the spam from the non-spam. Specifically, you would like to: Run spamassassin against the directory, tagging each message with an X-Spam-Flag: YES if it…
ane
  • 171
  • 1
  • 4
  • 16