六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 78|回复: 0

Avoid Lots of POP3-Login or IMAP Processes by Configurating Postfix and Dovecot

[复制链接]

升级  34.67%

24

主题

24

主题

24

主题

秀才

Rank: 2

积分
102
 楼主| 发表于 2013-1-28 22:01:43 | 显示全部楼层 |阅读模式
My VPS has hundreds of POP3-Login and IMAP processes recently. Even each process consumes only 0.1% of the main memory, 100 processes can eat up 10%!
 
After seeking help to Google, I' ve found the answer:
 
First, set max connection number of smtp process.
 
1. Edit Postfix configuration file. If you installed Postfix by yum, the configuration file should be located at /etc/postfix/main.cf;
 
2. Add the line below at the bottom of main.cf
smtpd_client_connection_rate_limit = 100 Tuning the number as you like.
 
Second, modify the configuration of Dovecot.
 
1. Edit Dovecot config file. If you installed it by yum, this file should be located at /etc/dovecot.conf
 
2. Add the line below
login_max_processes_count = 20 If the processes number exceeds 20, older ones will be destroyed.
 
Third, restart services.
 
service postfix restartservice dovecot restart  
Reference:
 
[1] http://www.postfix.org/TUNING_README.html#conn_limit
 
[2] http://wiki.dovecot.org/MainConfig
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表