Skip to main content

maildir – Maildir Delivery Support

Last updated March 2020

The maildir I/O module subverts the regular spooling actions for qualified messages to storage in maildir format as specified by qmail: .


maildir "maildir1" {
  basedir = "/var/tmp/popbase"
  dirmode = 775
  filemode = 664
  create_users = true
  domain_in_path = true
  all_domains = false
  domains = ( ""

If set to true, all domains will be delivered to the maildir store; otherwise, only the domains configured by the domain option will be delivered to the maildir store.


The base directory under which to create maildir mailboxes.


If set to true, any user for one of the configured domains will be accepted for local delivery and the mailbox will be created if it does not already exist. This is most useful in conjunction with custom logic programmed using policy scripts.

If set to false, the message will be rejected if the mailbox does not already exist.


The file permission mode to use on directories created by the module.


This option configures a domain for delivery to the maildir store. It can be specified multiple times.


If set to true the mailbox path will include the domain name, otherwise it will not.


The file permission mode to use on files created by the module.

Was this page helpful?