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

Extract all messages in a set of maildirs with certain domains in the headers

I have a mailserver (running Exim as MTA/MDA, and Dovecot for IMAP access) with around 50 users, and around 100GB total data (including some huge accounts, some defunct ones, etc). The mail is all stored in Maildirs. We have a sudden need to pull…
James Green
  • 895
  • 1
  • 9
  • 23
0
votes
2 answers

Decode TNEF / winmail.dat in whole Maildir

because of a transition from MS Exchange to Courier IMAP, all our old mail messages have a winmail.dat attachment, which sometimes contains also the message's original attachments. I am looking for a tool which will scan a whole Maildir and convert…
Marie Fischer
  • 1,973
  • 1
  • 13
  • 13
0
votes
2 answers

Users reporting strange IMAP issues from their mail clients: messages missing, deleted, or moved from folders

The server is a CentOS 5 install running Dovecot for imap access within an office LAN to about 5 computers using Thunderbird. There's only one mailbox, in the Maildir format, and about 20GB in size. One of the drives in the RAID 1 array failed…
0
votes
1 answer

Filter mail which was delivered to root's inbox

My mailserver was set so that all the mails to info@domain were going to the root Maildir. Now, I'm wondering how could I "filter" these mails out so that I can see which mails were tried to be sent to info@domain. I am using postfix + dovecot and…
Nikola
  • 847
  • 4
  • 13
  • 22
0
votes
1 answer

Default subfolders for dovecot

For new accounts, dovecot only has a single default folder, the inbox. Is there a way to specify a default set of subfolders, preferably immutable, that exist for each inbox? Ideally, I want each account to have a Sent, Trash, and Drafts folder,…
Abraham Vegh
  • 1,045
  • 5
  • 17
  • 26
0
votes
2 answers

Transferring mails and user setting to new mail server

We have a mail server running Debian 5.0. It is one year old now but we want to deploy a new server with Ubuntu Server 10.04. The problem is that we want to transfer all the user mails and settings to the new mail-serverl. So all their usernames and…
hsinxh
  • 143
  • 2
  • 10
0
votes
2 answers

How pipe email to PHP with Maildirs

I used to pipe incoming emails using: |/path/to/php/script in .forward file at /home folder. But the actual system I'm working on is based on Maìldir instead MBOX. So that solution does not work. I have no clue how to pipe emails correctly to PHP.
Andre Resende
0
votes
1 answer

Script encrypting Mails on Server [Maildir/GPG]

The idea is to encrypt [cronjob] all mails older than x days with a certain [per user] PGP Key. Mails are stored in Maildir format. Are you guys aware of an existing solution to this? Or maybe someone's got a script lying around that does a similar…
Robert
  • 1
  • 1
0
votes
1 answer

Integrating multiple mailboxes (dovecot, Exim, maildir)

Following an outage, I've ended up with 2 mailboxes for each of my users, on separate machines. I've shut the interim machine down now, and put the mailboxes on the real server in /srv/scratch/$username/Maildir/..., and need to integrate the…
James Green
  • 895
  • 1
  • 9
  • 23
0
votes
1 answer

Maildir and mail attachments

If the mail receive with attachments and mail storage in the server - Maildir. How attachment set in Maildir format? For example: I user maildir for incoming message in my server. I got 1 message with attachment, I set this message in /user/new dir,…
shk
  • 183
  • 2
  • 13
0
votes
2 answers

Using Maildir as default mailspool

Is it possible to use a Maildir as the mailspool for users on a *nix box? I can get procmail to deliver to a Maildir without any problem, but I want to keep all the nifty features like finger knowing when mail last came in and shells alerting users…
singpolyma
  • 489
  • 2
  • 7
  • 19
0
votes
1 answer

Splitting Exim mailboxes on two different disks

I have inherited a rather small server and am forced to try splitting the e-mail accounts served by Exim on two (or more) disks (different mount points). I was searching the internet for a solution but couldn't find one. If at all possible, I want…
0
votes
0 answers

How to import mbox file to Maildir

I have the following mbox file: /home/incoming/test_data/example_data/.transaction_emails_mbox. I want to move the emails in the mbox file to Maildir at the following directory, where all the user's other emails are: /home/incoming/Maildir/cur/.…
0
votes
0 answers

Dovecot Maildir directory structure issue

I've just set up a new mail server (Dovecot/Postfix, IMAP only) and I'm trying to migrate all the messages from the old server to the new one. The server handles mail for a small company with half-a-dozen accounts. The problem is that I can't…
QF0
  • 183
  • 1
  • 7
0
votes
1 answer

Making Alpine work all the way with Maildir

I'm converting a Linux machine over to using ~/Maildir/ instead of ~/mail/. One of the requirements is for Alpine to work with this new arrangement. Using the maildir patch at http://www.alpine.x10host.com/alpine/info/maildir.html, I've been able…
Frotz
  • 131
  • 5