大网数据广告活动
服务器运维问答

What are the practical differences between Maildir and Mbox?

· 52CE 我爱测

Although I understand the basics of the two storage formats (1 file per email under Maildir vs. 1 single file per mailbox under mbox), I am wondering what the practical implications are here - Is one storage format more scalable …

问题原文

原帖链接 · olympe26 · CC BY-SA 4.0

Although I understand the basics of the two storage formats (1 file per email under Maildir vs. 1 single file per mailbox under mbox), I am wondering what the practical implications are here -

  • Is one storage format more scalable than the other?
  • Are there data integrity concerns / differences?
  • Are there clearly defined situations where you should use one format over the other?

社区高分解答

原帖链接 · Kondybas · CC BY-SA 3.0

Don't manage mailboxes from postfix. Never. Redirect messages for delivery via POP/IMAP server that has appropriate functionality. In case of dovecot there is dovecot-lda aka deliver that do everything and much more, like user-controlled message filtering, quota management, autoreplying and so on.

Anyway maildir is newer and preferrable format due to the lot of improvements comparatively to maibox. Maildir has an index for each folder that allow to control duplicates, expiration times and even full-text search. Also, maildir is significantly faster on a huge pile of messages. Dovecot can easily operate maildir with 300k messages in it without any visible slowdown. Mailbox such big is a problem itself. Also, most modern POP/IMAP servers has a lot of utilities for common tasks in large infrastructure.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2014-01-01)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0 / CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。