Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

http://wiki2.dovecot.org/LDA/Sendmail

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

1 Answer 1

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

 
discard

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.