Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 sendmail's local_procmail FEATURE call /usr/local/libexec/dovecot/deliver / dovecot-lda directly, instead of first calling procmail.

In such case, how would dovecot-lda know whether it needs to deliver to mbox or maildir?

FEATURE(`local_procmail', `/usr/local/libexec/dovecot/dovecot-lda',`/usr/local/libexec/dovecot/dovecot-lda -d $u')
share|improve this question

This is decided in /etc/dovecot/dovecot.conf from what I read in the manuals. You will need:

mail_location = maildir:~/Maildir
lda_mailbox_autocreate = yes
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.