Changing the default delivery mailbox to something other than INBOX

Aki Tuomi aki.tuomi at open-xchange.com
Mon Jan 18 09:06:11 EET 2021


> 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.
> 
> rg

Ah, 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


More information about the dovecot mailing list