3

Currently I am using this in my dovecot.conf:

protocol imap {
mail_plugins = "autocreate"
}

plugin {
autocreate = Trash
autocreate2 = Sent
autosubscribe = Trash
autosubscribe2 = Sent
}

My log says: Warning: autocreate plugin is deprecated, use mailbox { auto } setting

I checked this page, but I am not able to "translate" my current settings into what it should be.

John Doof
  • 179
  • 3
  • 10

1 Answers1

6

I just started experimenting with this myself, but I believe that in your case you need to replace these lines:

protocol imap {
  mail_plugins = "autocreate"
}

plugin {
  autocreate = Trash
  autocreate2 = Sent
  autosubscribe = Trash
  autosubscribe2 = Sent
}

With:

namespace inbox {
  inbox = yes

  mailbox Trash {
    auto = subscribe # autocreate and autosubscribe the Trash mailbox
    special_use = \Trash
  }
  mailbox Sent {
    auto = subscribe # autocreate and autosubscribe the Sent mailbox
    special_use = \Sent
  }
}

And finally service dovecot restart.

uma
  • 3
  • 3
Serrano
  • 251
  • 1
  • 7
  • 1
    In my case (I'm using Vesta 0.9.8-19), the only thing missing was the part where the autocreate plugin is added to the config. Restarting dovecot then created the folders just fine, and no warning was written to the log. – Bruno Philipe Feb 11 '18 at 05:06
  • namespace doc - https://doc.dovecot.org/configuration_manual/namespace/ – B. Shea Dec 20 '19 at 21:01