r-raymond / nixos-mailserver

A complete and Simple Nixos Mailserver
GNU General Public License v3.0
181 stars 27 forks source link

mail-server/dovecot.nix: automatically subscribe to new mailboxes #40

Closed eqyiel closed 6 years ago

eqyiel commented 6 years ago

When a mailbox is created by sieve or is delivered to directly by IMAP commands, created IMAP folders are not subscribed to by dovecot. These configuration options change that.

Before:

$ doveconf | grep -e '^lda'                                                                                       
lda_mailbox_autocreate = no
lda_mailbox_autosubscribe = no
lda_original_recipient_header =

After:

$ doveconf | grep -e '^lda'
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
lda_original_recipient_header =

Despite being prefixed with lda (local delivery agent) and the fact that we are using lmtp for virtual users, I believe this has an effect because:

r-raymond commented 6 years ago

Thanks alot. I'll try to write a test for the sieves as soon as I find some time.