跳至论坛內容
iRedMail 开源邮件服务解决方案
支持 Red Hat Enterprise Linux, CentOS, Scientific Linux, Debian, Ubuntu, FreeBSD, OpenBSD
您尚未登陆。 请选择登陆或是注册一个新账号。
热门主题 尚未回复的主题
iRedMail 技术交流 QQ 群:296792359。
Spider Email Archiver:由 iRedMail 团队开发的轻量级电子邮件归档软件。
主题: imap方式收邮件,邮箱有很多邮件(比如邮箱目录大小已经几个G),收件非常慢(几分钟甚至无响应),怎么优化?
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:iredmail 0.7.3
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):OpenLDAP
- 使用的 Linux/BSD 发行版名称及版本号:CentOS5.4
- 与您的问题相关的日志信息:无
====
使用imap方式收取邮件的用户,当他的邮箱有很多邮件(比如邮箱目录已经有5G那么大)的时候,他使用imap协议收邮件会很慢,用Webmail也很慢(因为webmail也通过imap协议)。比如,登录webmail,输入密码后要等好几分钟甚至一直进不去。有什么办法优化吗?
- 注册日期: 2009-12-18
- 文章数: 2,864
回复: imap方式收邮件,邮箱有很多邮件(比如邮箱目录大小已经几个G),收件非常慢(几分钟甚至无响应),怎么优化?
对比过邮箱较少邮件的帐号么?贴一下 "dovecot -n" 命令的输出看看。
回复: imap方式收邮件,邮箱有很多邮件(比如邮箱目录大小已经几个G),收件非常慢(几分钟甚至无响应),怎么优化?
对比过,最后没办法,大邮箱邮件备份后清空了,这样访问就快了
dovecot -n 输出:
# 1.2.16: /etc/dovecot.conf
# OS: Linux 2.6.18-164.el5 x86_64 CentOS release 5.4 (Final)
log_path: /var/log/dovecot.log
protocols: pop3s imap imaps managesieve
listen(default): *
listen(imap): *
listen(pop3): *
listen(managesieve): 127.0.0.1:2000
ssl_ca_file: /etc/pki/tls/certs/iRedMail_CA.pem
ssl_cert_file: /etc/pki/tls/certs/iRedMail_CA.pem
ssl_key_file: /etc/pki/tls/private/iRedMail.key
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
login_executable(managesieve): /usr/libexec/dovecot/managesieve-login
first_valid_uid: 501
last_valid_uid: 501
mail_uid: 501
mail_gid: 501
mail_location: maildir:/%Lh/Maildir/:INDEX=/%Lh/Maildir/
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_executable(managesieve): /usr/libexec/dovecot/managesieve
mail_process_size: 1024
mail_plugins(default): quota imap_quota autocreate
mail_plugins(imap): quota imap_quota autocreate
mail_plugins(pop3): quota
mail_plugins(managesieve):
mail_plugin_dir(default): /usr/lib64/dovecot/imap
mail_plugin_dir(imap): /usr/lib64/dovecot/imap
mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3
mail_plugin_dir(managesieve): /usr/lib64/dovecot/managesieve
imap_client_workarounds(default): tb-extra-mailbox-sep
imap_client_workarounds(imap): tb-extra-mailbox-sep
imap_client_workarounds(pop3):
imap_client_workarounds(managesieve):
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
pop3_client_workarounds(managesieve):
namespace:
type: private
separator: /
inbox: yes
list: yes
subscriptions: yes
namespace:
type: shared
separator: /
prefix: Shared/%%u/
location: maildir:/%%Lh/Maildir/:INDEX=/%%Lh/Maildir/Shared/%%u
list: children
subscriptions: yes
lda:
postmaster_address: root
auth_socket_path: /var/run/dovecot/auth-master
mail_plugins: quota sieve autocreate
sieve_global_path: /data/vmail/sieve/dovecot.sieve
log_path: /var/log/sieve.log
auth default:
mechanisms: plain login
default_realm: baifendian.com
user: vmail
passdb:
driver: ldap
args: /etc/dovecot-ldap.conf
userdb:
driver: ldap
args: /etc/dovecot-ldap.conf
socket:
type: listen
client:
path: /var/spool/postfix/dovecot-auth
mode: 438
user: postfix
group: postfix
master:
path: /var/run/dovecot/auth-master
mode: 438
user: vmail
group: vmail
plugin:
quota_warning: storage=85%% /usr/local/bin/dovecot-quota-warning.sh 85
quota_warning2: storage=90%% /usr/local/bin/dovecot-quota-warning.sh 90
quota_warning3: storage=95%% /usr/local/bin/dovecot-quota-warning.sh 95
quota: dict:user::proxy::quotadict
quota_rule: *:storage=0
expire: Trash 7 Trash/* 7 Junk 30
expire_dict: proxy::expire
auth_socket_path: /var/run/dovecot/auth-master
sieve: /data/vmail/sieve/%Ld/%Ln/dovecot.sieve
autocreate: INBOX
autocreate2: Sent
autocreate3: Trash
autocreate4: Drafts
autocreate5: Junk
autosubscribe: INBOX
autosubscribe2: Sent
autosubscribe3: Trash
autosubscribe4: Drafts
autosubscribe5: Junk
acl: vfile
acl_shared_dict: proxy::acl
sieve: /data/vmail/sieve/%Ld/%Ln/dovecot.sieve
sieve_dir: /data/vmail/sieve/%Ld/%Ln/
dict:
expire: db:/var/lib/dovecot/expire/expire.db
quotadict: mysql:/etc/dovecot-used-quota.conf
acl: mysql:/etc/dovecot-share-folder.conf
回复: imap方式收邮件,邮箱有很多邮件(比如邮箱目录大小已经几个G),收件非常慢(几分钟甚至无响应),怎么优化?
有好多用户邮件是几个G,都是有时特别慢
慢的时候用imap登录邮件少的用户是否可以,是否快 我还没试
有办法查到问题原因,并优化吗?
- 注册日期: 2009-12-18
- 文章数: 2,864
回复: imap方式收邮件,邮箱有很多邮件(比如邮箱目录大小已经几个G),收件非常慢(几分钟甚至无响应),怎么优化?
技术上来说,几个G的 IMAP 邮箱不算很大,Dovecot 对邮件都有做索引,因此应该不会很慢才对。
文章数 [ 5 ]
页面生成时间 0.011 秒, 共执行查询 53 条