Ron Garret
2021-Jan-18 06:56 UTC
Changing the default delivery mailbox to something other than INBOX
On Jan 17, 2021, at 10:48 PM, Aki Tuomi <aki.tuomi at open-xchange.com> wrote:> Don't touch the INBOX setting (leave it out), use the -m parameter for dovecot-lda.I don?t think that will work. My MTA is postfix and it?s connected to dovecot via LMTP, so AFAIK postfix is talking to dovecot over a socket, and dovecot-lda isn?t being invoked so there is no place to pass that the -m parameter. But we are at the limits of my understanding of how all this stuff actually works under the hood so please correct me if I?m wrong here. rg
Aki Tuomi
2021-Jan-18 07:06 UTC
Changing the default delivery mailbox to something other than INBOX
> On 18/01/2021 08:56 Ron Garret <ron at flownet.com> wrote: > > > On Jan 17, 2021, at 10:48 PM, Aki Tuomi <aki.tuomi at open-xchange.com> wrote: > > > Don't touch the INBOX setting (leave it out), use the -m parameter for dovecot-lda. > > I don?t think that will work. My MTA is postfix and it?s connected to dovecot via LMTP, so AFAIK postfix is talking to dovecot over a socket, and dovecot-lda isn?t being invoked so there is no place to pass that the -m parameter. But we are at the limits of my understanding of how all this stuff actually works under the hood so please correct me if I?m wrong here. > > rgAh, you are using LMTP... then the easiest is to use Sieve here. You can use simple global script, e.g. /etc/dovecot/default-mbox.sieve ``` require ["fileinto", "mailbox"]; fileinto "OtherBox"; ``` then sievec the script, and use plugin { sieve_before = /etc/dovecot/default-mbox.sieve } this way it will change the default mailbox, but allows per-user scripts to change it. Aki