Dovecot:不推荐使用自动创建插件,使用邮箱 { auto } 设置

Joh*_*oof 3 email-server configuration dovecot

目前我在 dovecot.conf 中使用它:

protocol imap {
mail_plugins = "autocreate"
}

plugin {
autocreate = Trash
autocreate2 = Sent
autosubscribe = Trash
autosubscribe2 = Sent
}
Run Code Online (Sandbox Code Playgroud)

我的日志显示:警告:自动创建插件已弃用,请使用邮箱 { auto } 设置

我检查了此页面,但我无法将当前设置“翻译”为应有的设置。

小智 6

我自己刚刚开始尝试这个,但我相信在你的情况下你需要替换这些行:

protocol imap {
  mail_plugins = "autocreate"
}

plugin {
  autocreate = Trash
  autocreate2 = Sent
  autosubscribe = Trash
  autosubscribe2 = Sent
}
Run Code Online (Sandbox Code Playgroud)

和:

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
  }
}
Run Code Online (Sandbox Code Playgroud)

最后service dovecot restart