分类 电脑 下的文章

using backwards-compatible default setting chroot=y

问题:centos7 里的 postfix 日志中提示兼容性信息提示。

尝试:原来是将原debian 里的 postfix 配置文件复制到 centos7 中发生的。默认 centos 不使用 chroot 环境,所以将配置文件中的 chroot 列值,从 - 修改为 n 重启 postfix 就可以了。

Nov 19 23:25:44 localhost postfix/master[865]: /etc/postfix/master.cf: line 18: using backwards-compatible default setting chroot=y
Nov 19 23:25:44 localhost postfix/master[865]: /etc/postfix/master.cf: line 26: using backwards-compatible default setting chroot=y
Nov 19 23:25:44 localhost postfix/master[865]: /etc/postfix/master.cf: line 35: using backwards-compatible default setting chroot=y

参考:

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