JanBox的小站 Exit Reader Mode

搭建自己的邮件系统——杂碎

这一篇是这个系列的第五篇
关于 一些杂碎的东西

默认文件夹

修改/etc/dovecot/conf.d/15-mailboxes.conf, 增加以下内容

namespace inbox {
  type = private
  separator = .
  inbox = yes

  mailbox Drafts {
    special_use = \Drafts
    auto = subscribe
  }
  mailbox Draft {
    special_use = \Drafts
    auto = no
  }
  mailbox drafts {
    special_use = \Drafts
    auto = no
  }
  mailbox Junk {
    special_use = \Junk
    auto = create
  }

  mailbox spam {
    special_use = \Junk
    auto = no
  }

  mailbox Spam {
    special_use = \Junk
    auto = no
  }

  mailbox Trash {
    special_use = \Trash
    auto = no
  }

  mailbox TRASH {
    special_use = \Trash
    auto = no
  }

  mailbox Sent {
    special_use = \Sent
    auto = subscribe
  }

  mailbox "Sent Mail" {
    special_use = \Sent
    auto = no
  }

  mailbox "Sent Items"  {
    special_use = \Sent
    auto = no
  }

  mailbox "Sent Messages" {
    special_use = \Sent
    auto = no
  }

  mailbox Archive {
    special_use = \Archive
    auto = create
  }

  mailbox "Archives" {
    special_use = \Archive
    auto = no
  }

  mailbox "Delete Items" {
    special_use = \Trash
    auto = no
  }
}

即可新增用户之后自动创建 收信文件夹 ,发信文件夹,草稿,垃圾邮件夹等,关于发信自动复制到发信文件夹中需要软件自己实现Orz