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

Move postfix maildir files from one mail server to another

I have a new mail server configured as described in this howto: http://howtoforge.com/virtual-users-domains-postfix-courier-mysql-squirrelmail-ubuntu-9.10 I also have an ancient mail server configured very similarly (using the same HOWTO, just for…
Tauren
  • 739
  • 4
  • 14
  • 24
3
votes
1 answer

Postfix Maildir virtual_mailbox_maps and virtual_alias_maps with multiple entries

Using Ubuntu 16.04 Xenial / Postfix 3.1.0 I have setup virtual_mailbox_maps with virtual_alias_maps using Maildir. I need Postfix to deliver mail both to an outside email address and to the appropriate Maildir folder(s). Instead, despite my best…
Robert P
  • 31
  • 1
  • 2
3
votes
3 answers

How do I move a Maildir to a subdirectory of another user?

When an employee has left the company I want to move their entire Maildir to be a folder in an "old employees" account. Given that Maildir uses the filesystem exclusively, I feel it should be possible to just mv ~fred/Maildir…
RickMeasham
  • 153
  • 2
  • 6
3
votes
2 answers

Who is telling where cur,new and tmp are created using Postfixadmin with Maildir

I was trying to realized which configuration is telling where cur,tmp and new are created. Of course I've beein using virtual user and I receive and send mails into virtualuser/domain/user/Maildir/new and virtualuser/Maildir/cur (I think…
MikZuit
  • 391
  • 2
  • 7
  • 16
3
votes
1 answer

Maildir "new" has messages but Inbox is empty

I'm installing a new mail server (Postfix/Dovecot+Maildir) in a fresh OS. Using Thunderbird (or Squirrelmail) I can send mails but my inbox is empty even when I can see them in /home//Maildir/new. What could be the problem? I'll attach any…
Heine Frade
  • 133
  • 1
  • 1
  • 4
3
votes
2 answers

Read mail from Postfix using shell script

I would like to be able to read incoming mail from a Postfix MTA using a shell script. The shell script should be able to retrieve the mail headers, subject, body, attachments, etc., then mark the mail as read. The messages are stored in the…
Jim Walker
  • 321
  • 1
  • 3
  • 10
3
votes
0 answers

Webmail Interface for Direct Access to Maildir Directory (No IMAP, POP3 on Purpose)

I am using a service providers that allows me to forward email to a shell account. I work/play in a lot of environments where I cannot SSH into the host a lot of the time, and I want to separate out the error and log emails from automated services…
songei2f
  • 1,934
  • 1
  • 20
  • 30
3
votes
1 answer

Postfix not delivering email using Maildir

I've followed this guide to get postfix set up. I've not completed it yet, as from sending test emails, email is no longer being delivered since switching to Maildir from mbox. I have created a Maildir directory with cur, new and tmp sub…
Greg K
  • 169
  • 3
  • 12
3
votes
1 answer

~/Maildir vs /var/mail for e-mail storage

I run a mail server with Exim4 and Dovecot. Currently mail goes to ~/Maildir. However, I am wondering what the relative advantages and disadvantages of storing mail in /var/mail/$user/ is. Is one location more secure (from a process privileges…
3
votes
1 answer

Extracting and saving attachments from maildir, deduplicated

I would like to know if there exists a solution for archiving email, stripping out the attachments and saving them separately, deduplicated? The ideal would be a maildir-setup, with a script running over the messages, extracting the attachments,…
grojo
  • 429
  • 1
  • 7
  • 18
3
votes
7 answers

What file system is better for a Linux mail server?

I have a mail server using maildir format, with about 100GB of data, and several directories have over 20000 files each. I'm currently using ext3, and I noticed that it's a bit slow sometimes. So I'd like to try a faster file system, but it needs to…
aditsu
  • 386
  • 1
  • 4
  • 10
2
votes
1 answer

Fast way to filter spam messages from maildir?

I have a Maildir with about 50k emails, about 42k of which are spam (the result of leaving my domain and email up and not using it for 2 years). I have the following script to try and filter out spam: #!/bin/sh for email in "$@"; do if !…
2
votes
2 answers

postfix maildir with custom path

I need to have postfix store mail in a maildir in /var/mail//. I've got mail_spool_directory = /var/mail and I'm preparing home_mailbox = but I don't know where to go from there. Assistance please? EDIT: SF ate my tag. Please…
Glen Solsberry
  • 1,536
  • 5
  • 28
  • 38
2
votes
2 answers

Backup maildir to windows cifs share

How can I incrementally backup a maildir to a cifs share without creating a full image each time? I have dovecot running with some large mail accounts. The only backup available is on a Windows server. I would prefer a solution somewhere between…
Rob
  • 141
  • 1
  • 6
2
votes
2 answers

How to move cur tmp new directories directly in virtual user home?

Reading the Maildir documentation they just mention folder should be like user/Maildir/cur tmp new So my virtual users have it without Maildir folder like: user/cur /tmp /new is this going to cause…
MikZuit
  • 391
  • 2
  • 7
  • 16