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.

Filter by
Sorted by
Tagged with
38
votes
5answers
30k views

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 ...
11
votes
1answer
5k views

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 ...
9
votes
4answers
6k views

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 ...
7
votes
2answers
3k views

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 ...
7
votes
2answers
11k views

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 ...
6
votes
2answers
14k views

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 ...
4
votes
1answer
9k views

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

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 ...
4
votes
2answers
4k views

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 ...
4
votes
3answers
3k views

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 ...
3
votes
4answers
3k views

What is the best filesystem for Maildir folders storage? [closed]

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 ...
3
votes
1answer
2k views

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 ...
3
votes
1answer
12k views

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/<mailuser>/...
3
votes
1answer
8k views

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 ...
3
votes
2answers
3k views

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 ...
3
votes
1answer
5k views

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 ...
3
votes
1answer
6k views

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 ...
3
votes
1answer
350 views

~/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 ...
3
votes
0answers
819 views

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

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 ...
2
votes
7answers
4k views

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 ...
2
votes
2answers
1k views

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, ...
2
votes
2answers
660 views

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 = no smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem ...
2
votes
2answers
416 views

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/...
2
votes
2answers
789 views

Move 53,800+ files into 54 separate folders with ~1000 files each?

Trying to import 53,800+ individual files (messages) using Gmail's POP fetcher. Gmail understandably refuses, giving the error: "Too many messages to download. There are too many messages on the ...
2
votes
2answers
6k views

postfix maildir with custom path

I need to have postfix store mail in a maildir in /var/mail/<DOMAIN>/<USER>. I've got mail_spool_directory = /var/mail and I'm preparing home_mailbox = but I don't know where to go ...
2
votes
2answers
543 views

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 ...
2
votes
3answers
2k views

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 ...
2
votes
2answers
9k views

Read mail from Postfix using shell script [closed]

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

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). ...
2
votes
1answer
1k views

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 ...
2
votes
2answers
1k views

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

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

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 (...
2
votes
2answers
556 views

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, ...
2
votes
1answer
230 views

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:...
2
votes
3answers
571 views

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 ...
2
votes
2answers
379 views

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 ...
2
votes
2answers
4k views

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

maildir in Windows for IMAP

I'm interested in accessing my IMAP accounts offline. I found that maildirs are a simple way to make it work. I found that [offlineimap] takes care of almost everything in making the IMAP->maildir ...
2
votes
1answer
600 views

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
1answer
2k views

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

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 ...
2
votes
2answers
767 views

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

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 ...
2
votes
2answers
193 views

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, ...
2
votes
1answer
882 views

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 ...
1
vote
3answers
3k views

Maintain email timestamp when transferring between email servers using an email client

I am running two different email servers using Postfix and Dovecot. Some of my users have accounts on both servers and sometimes transfer emails from one to the other through their email client. When ...
1
vote
2answers
345 views

Procmail and thunderbird: folder/maildir created with root as owner

I have a mailserver configured(spamassassin+procmail+sendmail+dovecot) I want all spam mails redirected to spam folder I set /etc/procmail DEFAULT=/var/spool/mail/$LOGNAME/new ORGMAIL=/var/spool/mail/...
1
vote
3answers
1k views

how to set postfix vmail mailbox permissions to group readable?

Postfix is delivering mail to ~vmail/user/new directories with owner vmail:vmail but permissions masked to 700 (i.e. not group readable.) I need the mailfiles to be created group readable so that ...
1
vote
2answers
632 views

Postfix maildir delivery failed - are my mails lost?

I was facing the problem that postfix could not deliver emails to my home-directory. I have a running Ubuntu 14.04 server and due to some problem with encrypted home-drive postfix was not able to ...