我已经安装了dovecot,我希望启用索引(例如,更快地检索IMAP命令)
如果我这样做了:
# doveconf | grep mailbox_list_index
mailbox_list_index = no我看多维柯有这个选择。
但是,如果将以下内容添加到conf文件中:
mailbox_list_index = yes我得到:
Starting Dovecot Imap: doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 7: Unknown setting: mailbox_list_index我似乎找不到有关这方面的任何资料。
Dovecot版本为2.0.9。
Config文件就是这样的:
base_dir = /var/run/dovecot/
disable_plaintext_auth = no
ssl = no
first_valid_uid = 1000
mail_location = maildir:~/Maildir
# Outlook Express and Windows Mail works only with LOGIN mechanism, not the standard PLAIN:
auth_mechanisms = plain login
#mailbox_list_index = no
service auth {
user = root
unix_listener /var/spool/postfix.host/private/auth {
mode = 0666
user = postfix
group = postfix
}
}
userdb {
args = uid=vmail gid=vmail home=/BASE/%d/%n mail=maildir:/BASE/%d/%n
driver = static
}
passdb {
args = username_format=%n /BASE.PASS/%d
driver = passwd-file
}
protocols = pop3 imap
#protocols = imap
service pop3 {
}
service imap {
}
service imap-login {
inet_listener imap {
address = *
port = 143
}
}在这台服务器上,我将有一些带有100,000+消息的邮件,因此欢迎任何其他改进。
发布于 2017-05-13 12:20:37
Dovecot2.0.9非常过时(发布于2011年1月!),列表索引在Dovecot2.1.0之前没有引入。升级到最近的版本,以使用列表索引指令。更新将带来许多其他修复和性能改进。
无论如何,性能上最相关的改进将是将邮箱从MailDir格式转换为高级mdbox,这是Dovecot最重要的特性之一,特别是对于大型邮件系统。此外,Dovecot有一个关于性能调优的整个文档部分,确定相关的使用模式需要收集关于使用模式的信息和一些硬件基准。
https://serverfault.com/questions/849892
复制相似问题