[Dovecot] Disable maildir indexing and dovecot-uidlist on LMTP/LDA delivery
Hello all,
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?
Regards, Jouko Nikula
On 04/02/2014 12:27 PM, Jouko Nikula wrote:
Hello all,
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?
Regards, Jouko Nikula
When indexes cannot be updated upon delivery, there is no real benefit in using dovecot's delivery mechanisms. So you could just simply let postfix deliver the messages.
Tom
I would like to use sieve plugin for server side filtering and I've understood that LMTP/LDA is required for this.
On Wed, Apr 2, 2014 at 5:48 PM, Tom Hendrikx <tom@whyscream.net> wrote:
On 04/02/2014 12:27 PM, Jouko Nikula wrote:
Hello all,
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?
Regards, Jouko Nikula
When indexes cannot be updated upon delivery, there is no real benefit in using dovecot's delivery mechanisms. So you could just simply let postfix deliver the messages.
Tom
If you're trying to do this without reading, you can't read the sieve rules.
If you only want to prevent the delivery process from reading Maildir data (messages) and don't mind when it reads dovecot-uidlist, one possible solution may be moving dovecot-uidlist (and others) out of the Maildir. For example:
mail_location = maildir:/somewhere/mailboxes:INDEX=/somewhere/else/index/:CONTROL=/somewhere/else/control/
(It's written by heart, so check syntax and adapt for your setup before using)
Also you'll need to move index and control data to new location before switching this on. I'm not sure if that can be done without downtime.
Jouko Nikula wrote:
I would like to use sieve plugin for server side filtering and I've understood that LMTP/LDA is required for this.
On Wed, Apr 2, 2014 at 5:48 PM, Tom Hendrikx<tom@whyscream.net> wrote:
On 04/02/2014 12:27 PM, Jouko Nikula wrote:
Hello all,
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?
Regards, Jouko Nikula
When indexes cannot be updated upon delivery, there is no real benefit in using dovecot's delivery mechanisms. So you could just simply let postfix deliver the messages.
Tom
Il 02/04/2014 12:27, Jouko Nikula ha scritto:
Hello all,
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?
Regards, Jouko Nikula
Hi,
I'm running dovecot with index disabled on LDA (but isn't possibile to disable dovecot-uidlist update).
Disable index update with LDA is usefull in some situation (one POP/IMAP server and two or more MX) and can be set up with:
protocol lda { mail_location = whatever-you-have-now:INDEX=MEMORY }
Take a look at this thread:
http://www.dovecot.org/list/dovecot/2012-January/062924.html
Ciao
Alessio Cecchi is: @ ILS -> http://www.linux.it/~alessice/ on LinkedIn -> http://www.linkedin.com/in/alessice Assistenza Sistemi GNU/Linux -> http://www.cecchi.biz Cloud Email Hosting -> http://www.qboxmail.com @ PLUG -> ex-Presidente, adesso senatore a vita, http://www.prato.linux.it
participants (5)
-
Alessio Cecchi
-
Jiri Bourek
-
Jouko Nikula
-
Jouko Nikula
-
Tom Hendrikx