轻松解决Postfix pop3d:Maximum connection limit reached for x.x.x.

Postfix 的 maillog 里有大量这样的错误

Mar 31 22:47:01 xxx pop3d: Maximum connection limit reached for xxx.xxx.xxx.xxx
Mar 31 22:47:02 xxx pop3d: Maximum connection limit reached for xxx.xxx.xxx.xxx
Mar 31 22:47:03 xxx pop3d: Maximum connection limit reached for xxx.xxx.xxx.xxx
Mar 31 22:47:04 xxx pop3d: Maximum connection limit reached for xxx.xxx.xxx.xxx
Mar 31 22:47:05 xxx pop3d: Maximum connection limit reached for xxx.xxx.xxx.xxx

日志内容的X为我已经替换掉的敏感信息。

Step 1:打开
vi /usr/local/courier-imap/etc/pop3d

Step 2:搜索 MAXDAEMONS
/MAXDAEMONS=

敲字母 i 进入编辑状态

设置成

##NAME: MAXPERIP:4
#
#  Maximum number of connections to accept from the same IP address

MAXPERIP=20 
#(此处为你想设置的链接数)

Step 3:保存退出
:wq

Step 4:重新加载 courier-imapd 配置
service courier-imapd reload

好搞定了。。。
原文链接:http://hohoqi.blog.163.com/blog/static/1079556120113101251437/

你可能感兴趣的:(技术,postfix,pop3d)