On Thu, Apr 3, 2014 at 1:36 AM, Joseph Tam <jtam.h...@gmail.com> wrote: > > Jouko Nikula <jonik...@gmail.com> writes: > >> Is there a way to use LMTP (or LDA) so that maildir index and >> dovecot-uidlist are not updated? >> >> My setup is such that mail delivery sees user's maildir as write only. This >> setup works well when using postfix for mail delivery, but when I try to >> switch to dovecot LMTP the lmtp process wants to read the dovecot-uidlist >> and fails on insufficient privileges. Is there a way around this without >> exposing the maildir and mail home for read access? > > > You could create MEMORY indices e.g. > > mail_location = maildir:~/Maildir:INDEX=MEMORY > > which will allow all the other processing like sieve to work. >
I now used: mail_location = maildir:~/mail:INDEX=MEMORY:CONTROL=/var/mail/%d/ctrl/%u and for sieve: plugin { sieve = /var/mail/%d/ctrl/%u/dovecot.sieve sieve_dir = /var/mail/%d/ctrl/%u/ } I also have two dovecot instances. One is responsible for imap/pop3 and other is responsible for sasl and and lmtp. The latter uses configuration above and the former differs on the mail location so that it does not have the INDEX=MEMORY setting: mail_location = maildir:~/mail:CONTROL=/var/mail/%d/ctrl/%u Do you see problems in this setup? My understanding is that now I'm wasting little bit CPU on creating indices for new mail, but I nevertheless have working and stored indices on the dovecot's imap instance. > However, I would look at the cause of the "insufficient privileges": > it is a symptom of something that could lead to other problems. > > Joseph Tam <jtam.h...@gmail.com> The cause is that I have not given lmtp read access to mail/home dir. :-) So this is intentional.