autocreate plugin is deprecated, use mailbox { auto } setting instead

问题:/var/log/maillog 日志中,有dovecot的警告信息,如

Nov 19 23:25:22 localhost dovecot: imap(laile@s)<1100>: Warning: autocreate plugin is deprecated, use mailbox { auto } setting instead

尝试:将dovecot配置文件中的原:

protocol imap {
  mail_plugins = "autocreate"
}

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

替换为:

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
  }
}

参考:https://serverfault.com/questions/763487/dovecot-autocreate-plugin-is-deprecated-use-mailbox-auto-setting

标签: none

添加新评论