Dovecot 进程限制
Dovecot process limits
有时我的鸽舍日志return:
service(imap-login): process_limit (512) reached, client connections are being dropped
我可以在 dovecot 配置文件中增加 process_limit
,但我不明白,这将如何影响系统。
如何诊断进程限制过高的原因?我的 postfix+dovecot+roundcube 系统中有大约 50 个用户。
我的配置:
- FreeBSD 10.0-稳定版
- 后缀 2.10
- 鸽舍 2.2.12
Dovecot 有两种登录过程模式。
当每个客户端通过自己的进程连接时,首先调用 secure mode
。
当单个进程为所有客户端提供服务时,第二个调用 performance mode
。
其实performance mode
并不是没有安全感,而是secure mode
偏执。
您必须在配置中设置所需的模式:
service imap-login {
inet_listener imap {
port = 143
}
inet_listener imaps {
port = 993
ssl = yes
}
# service_count = 0 # Performance mode
service_count = 1 # Secure mode
process_min_avail = 1
}
在我的例子中,性能模式服务于 1k+ 用户。
有时我的鸽舍日志return:
service(imap-login): process_limit (512) reached, client connections are being dropped
我可以在 dovecot 配置文件中增加 process_limit
,但我不明白,这将如何影响系统。
如何诊断进程限制过高的原因?我的 postfix+dovecot+roundcube 系统中有大约 50 个用户。
我的配置:
- FreeBSD 10.0-稳定版
- 后缀 2.10
- 鸽舍 2.2.12
Dovecot 有两种登录过程模式。
当每个客户端通过自己的进程连接时,首先调用 secure mode
。
当单个进程为所有客户端提供服务时,第二个调用 performance mode
。
其实performance mode
并不是没有安全感,而是secure mode
偏执。
您必须在配置中设置所需的模式:
service imap-login {
inet_listener imap {
port = 143
}
inet_listener imaps {
port = 993
ssl = yes
}
# service_count = 0 # Performance mode
service_count = 1 # Secure mode
process_min_avail = 1
}
在我的例子中,性能模式服务于 1k+ 用户。