How do you make postfix create maildir folders automatically for all users?

I have these two lines in postfix main.cf, which supposed do create maildir folder after the first mail but it is not working. What am I missing?

home_mailbox = Maildir 
mailbox_command = 

At the moment mail looks to sent, but nowhere to be found.

  • 1
    Shouldn't it be home_mailbox = Maildir/ with a slash (/) at the end if you want a qmail-style directory? See the documentation for home_mailbox. Commented May 30, 2014 at 3:27
  • And with the slash: postfix creates non-existent Maildirs itself. Commented Jun 27, 2022 at 23:14

1 Answer 1


Cristian's comment is correct: you need a trailing slash to make Postfix store incoming mail in Maildir format:

home_mailbox = Maildir/

If you leave it off, it stores the mail in an mbox-style file of the same name.

That is to say, this is not a setting where you are providing the name of a type of storage, you are providing the name of a file or directory, and Postfix infers mbox vs Maildir based on the trailing slash only. It will use any directory name you put here, not just Maildir.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .