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
0 votes
0 answers
43 views

Dovecot virtual mailbox change domain of mailbox

I have a virtual mailbox (Maildir) like user@111.com, which now needs to be moved to user@222.com because of a change in domain. Reading about, I have found Dovecot "import" and "move&...
user avatar
  • 1
0 votes
0 answers
140 views

Mail server seems to be working but mail client does not show mails

for the last few days I have been trying to run an email server and it looks like I finally made it. The email server runs on Debian in combination with postfix and dovecot. Webmin is also installed, ...
user avatar
0 votes
0 answers
28 views

Migrating dovecot maildirs (dump) to other service

After issues with the VPS host / manager I've migrated from a managed VPS mail to a more saas-type service. However while I remembered to backup the VPS (so I have a bunch of dovecot maildirs in a zip)...
user avatar
  • 101
1 vote
1 answer
315 views

MDA broken pipe with fetchmail / dovecot

I have set up a home mail server with dovecot to download and archive email from multiple webmail accounts via IMAP. The goal is to do this automatically every week with a cron job. I'm not sure if I ...
user avatar
  • 121
0 votes
1 answer
386 views

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....
user avatar
  • 121
1 vote
1 answer
1k views

Dovecot: is there a way to delete specific email from ALL mailboxes of one domain?

I want to be able to delete specific email message from all mailboxes of one domain, does Dovecot has this type of functionality OR are there any known good solution for this? It's Maildir format and ...
user avatar
1 vote
1 answer
85 views

Coexistence and migration to Dovecot

We have an environment with >5,000 mailboxes and we need to coexist/migrate the emails from one dovecot to another dovecot environment. The migration data includes: email (sync using imapsync) ...
user avatar
  • 11
0 votes
1 answer
69 views

Copy emails to another domain on the same VPS

I'm moving my website to another domain on the same VPS. From olddomain.com to newdomain.com. I want to move all emails from hello@olddomain.com to piotr@newdomain.com I'm looking for fast and ...
user avatar
  • 1
1 vote
1 answer
546 views

Dovecot: issue with converting mdbox to MailDir

I have a problem to convert mdbox to MailDir. Log from that process looks like: /bin/dsync -Dv -u user@domian.com mirror maildir:/tmp/destination/mailboxes/user@domian.com Debug: Loading modules ...
user avatar
1 vote
1 answer
1k views

Dovecot Sieve doesn't move spam to Junk folder in maildir

I have an Ubuntu 16.04 mail server with postfix/spamassassin/dovecot with virtual mailboxes in maildir format. The whole process is working excellently since a year. Spams are marked with "*****SPAM***...
user avatar
0 votes
1 answer
263 views

Courier does not show IMAP Maildir folders

I am in the process of moving a courier IMAP server from one machine to another. Maildirs have been set up, all the messages have been copied successfully. There are a few IMAP folders that show up in ...
user avatar
  • 259
0 votes
1 answer
509 views

Dovecot mail migration from mdbox

I’m trying to migrate mdbox to maildir based on https://wiki.dovecot.org/Migration/MailFormat I have modified dovecot.conf and set mail_location=maildir:/tmp/destination/mailboxes/ Then I had run /...
user avatar
0 votes
1 answer
787 views

Dovecot mdbox to mbox/MailDir/eml conversion

Is there any way to convert Dovecot's mdbox/dbox to mbox, MailDir or eml format (or any other easy to import format)?
user avatar
0 votes
1 answer
2k views

Convert a raw email message to plain text in linux

I'm in the cur folder of a maildir store. I want to cat a message .. pipe it to a command .. and have the body of the message spit out. Simple. Example: If its a mime message .. and there is a ...
user avatar
  • 43
3 votes
1 answer
2k 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 ...
user avatar
0 votes
0 answers
91 views

Postfix not adding email size flag with maildirs

Dovecot requires emails in maildirs to have ,S= -flag on emails to be compressed, but I cannot seem to find a way to make Postfix to add this flag. Is there some configuration option or is there other ...
user avatar
  • 511
0 votes
1 answer
834 views

How do I get Courier Maildrop to log data?

Background I'm running Ubuntu 16.04 LTS on a virtual machine. It is the mail server for a small medical clinic. We are trying to move mail filtering from the client-side to the server-side, and I am ...
user avatar
1 vote
1 answer
93 views

Dovecot and lz4: unknown handler

I'm trying to compress my incoming Maildir-formatted mail. My server is Ubuntu 14.04 LTS. In /etc/dovecot/conf.d/10-mail.conf: mail_plugins = $mail_plugins zlib In /etc/dovecot/conf.d/90-plugin....
user avatar
  • 121
0 votes
2 answers
236 views

Postfix with Maildir and popper as pop3 server

I am trying to run postfix with "maildir" feature and qpopper as pop3 server and I'm stuck. When I disable "Maildir" feature, popper is running fine, but I would like to make it work with MailDir. I ...
user avatar
  • 33
2 votes
1 answer
534 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:...
user avatar
1 vote
1 answer
857 views

I use postfix, why does my Maildir contain 14,000 files?

As I am about to drop a server, I thought, I should clean up my Maildir directory, just in case. It may contain some emails with password and such so I do not want those to be readable by others. I ...
user avatar
  • 1,972
1 vote
1 answer
1k views

Mail delivered but not seen in client

I have the following mail server setup (dovecot --version = 2.2.13 , postfix version=2.11.3-1), the user aliases are stored in mariadb and the authentication is against an active directory server. ...
user avatar
  • 41
1 vote
1 answer
1k views

Some IMAP folders not showing in Roundcube after email server migration

I'm in the process of moving email servers and am having some with nested IMAP folder. The new server uses a mailinabox installation and is based on postfix, just as the old email server was. I thus ...
user avatar
0 votes
0 answers
675 views

Sendmail/dovecot/procmail: Maildir permissions

I've just spent several hours in the middle of the night trying to migrate a Maildir setup from Centos 5.6 to Centos 7.2. I found dozens of hits on how to do this, all completely useless - a few gave ...
user avatar
  • 393
1 vote
1 answer
602 views

Migrate Dovecot 0.99 to Dovecot 2.x and preserve POP UIDs

I have an old server running Sendmail and Dovecot 0.99. There are about 50 email accounts on this server, associated with various domain names hosted on it. The email data is stored in MBOX format ...
user avatar
1 vote
2 answers
1k 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 ...
user avatar
  • 41
8 votes
2 answers
7k 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 ...
user avatar
1 vote
0 answers
2k views

Correct Namespace config for Sent/Drafts/Trash with dovecot

Dovecot seems to configure namespaces by default (conf.d/10-mail.conf and conf.d/15-mailboxes.conf) this way: # 10-mail.conf mail_location = mbox:~/mail:INBOX=/var/mail/%u namespace inbox { inbox =...
user avatar
  • 1,514
1 vote
2 answers
583 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/...
user avatar
  • 322
0 votes
1 answer
2k views

Import mail from Google apps to Postfix/Dovecot Maildir

I was using Google apps for work and now I set up my own mail server since I have a lot of users and paying Google would be too much for that number :( Currently my Postfix and Dovecot are set to use ...
user avatar
1 vote
1 answer
1k views

Create a Dovecot Maildir structure (with indexes) from loose Maildir files: Best way?

I have a directory with a few thousand email files from another Dovecot-based server, but they have no indexes. I'd like to "import" these into an existing, live Dovecot directory structure such that ...
user avatar
  • 246
1 vote
0 answers
890 views

Quota in Postfix, Dovecot with Maildir Not working

I've some problem with quota with Maildir. If I install a plugin in Thunderbird that shows Quota's it's working and my quota is like 300%. But I can still send and recieve mails. I'm not running any ...
user avatar
  • 19
5 votes
1 answer
4k 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 ...
user avatar
  • 1,451
4 votes
1 answer
16k 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 ...
user avatar
1 vote
1 answer
3k views

Dovecot SELinux MailDir permission denied

I have dovecot installed on CentOS 7.1. In the past, I have often just disabled SELinux, but now I want to have a server with SELinux that works for me. Anyhow, I have mail stored in /home/USER/...
user avatar
2 votes
2 answers
716 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 ...
user avatar
  • 141
3 votes
3 answers
4k 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 ...
user avatar
4 votes
1 answer
150 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 ...
user avatar
3 votes
2 answers
4k 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 ...
user avatar
  • 391
2 votes
2 answers
619 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/...
user avatar
  • 391
0 votes
2 answers
2k views

Postix or Dovecot debug log for Maildir folder, Virtual user mail folder owner and permission

I'm no able to find a complete tutorial about Maildir and the folders where reside owner and permissions if there's any and you already found it , please share. Anyway I wonder if there is a way to ...
user avatar
  • 391
1 vote
1 answer
1k views

Creating missing Maildir++ folders in Dovecot

I'm running Dovecot on my mail server and storing messages in the Maildir++ format. I have the following directories (as well as the usual Maildir directories) in /var/mail/user: .Something.2013 ....
user avatar
3 votes
1 answer
15k 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>/...
user avatar
1 vote
1 answer
356 views

How to set the last directory in "mail_location" setting of dovecot?

I have: mail_location = maildir:/srv/vmail/%d/%n However in reality, Dovecot stores mails in: /srv/vmail/%d/%n/mail I need to migrate a mailboxes that ends with "Maildir" instead of "mail". How can ...
user avatar
3 votes
2 answers
18k 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 ...
user avatar
4 votes
3 answers
793 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 ...
user avatar
4 votes
2 answers
5k 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 ...
user avatar
  • 151
4 votes
1 answer
9k 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 ...
user avatar
  • 143
-4 votes
2 answers
3k views

How to set up squirrelmail read from Maildir

I have the problem that my squirrelmail is not reading mails from Maildir. So my Inbox in squirrelmail is always empty. How can I fix it? This should be the path for Maildir: /home/someuser/Maildir. ...
user avatar
2 votes
1 answer
985 views

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:~/...
user avatar
  • 173