dovecot configuration
-
authentication mechanism and password scheme
- link
- authentication mechanism -> how password is transferred from cilent from server; passwd scheme: how password is stored in server.
-
plain and plaintext
- auth_mechanisms = plain
- disable_plaintext_auth = yes
- plain is one protocol of authentication mechanism, password is plaintext; “disable_plaintext_auth=yes” means ssl/tls is mandatory.
-
service
- service = 一个独立运行的 Dovecot 功能组件
- service imap-login # IMAP 登录
- service imap # IMAP 邮件操作
- service pop3-login # POP3 登录
- service pop3 # POP3 邮件收取
- service auth # 账号密码验证
- service lda # 本地邮件投递
- 只有被 Dovecot 启用的协议 / 功能,对应的 service 才会真正运行
- /etc/dovecot/dovecot.conf
- protocols = imap pop3 lmtp
- 写了 imap → 启动 imap-login + imap, 写了 pop3 → 启动 pop3-login + pop3,没写的协议 → 对应的 service 完全不运行
- service = 一个独立运行的 Dovecot 功能组件
-
namespace
- Dovecot 的 Namespace 是「邮件文件夹的分组 / 容器」,用来划分不同来源、不同权限、不同存储位置的邮件目录,让邮件客户端能清晰区分「私人邮箱」「共享文件夹
」「公共邮箱」等。
- 你可以把它理解成电脑里的「文件夹分区」:
- 一个 Namespace = 一个独立的邮件目录分区
- 不同 Namespace 可以存放在不同路径、拥有不同权限、使用不同分隔符
- 同一个名字的 namespace,会自动合并!
- 10-mail.conf 里的 namespace inbox → 定义基础属性(inbox=yes、type、separator 等)
- 15-mailboxes.conf 里的 namespace inbox → 定义里面的文件夹(Drafts、Sent、Trash、Junk 等)
- Dovecot 会把它们合二为一,变成一个完整的 namespace。
namespace inbox {·· mailbox Drafts {·· special\_use = \Drafts·· }·· mailbox Junk {·· special\_use = \Junk·· }·· mailbox Trash {·· special\_use = \Trash·· }·· # For \Sent mailboxes there are two widely used names. We'll mark both of·· # them as \Sent. User typically deletes one of them if duplicates are created.·· mailbox Sent {·· special\_use = \Sent·· } - Dovecot 的 Namespace 是「邮件文件夹的分组 / 容器」,用来划分不同来源、不同权限、不同存储位置的邮件目录,让邮件客户端能清晰区分「私人邮箱」「共享文件夹
」「公共邮箱」等。