我的邮件服务器不时发送任何新的邮件。 发生这种情况时,我find下面的错误日志,
Jun 22 23:10:18 myserver saslauthd[3967]: DEBUG: auth_pam: pam_authenticate failed: Memory buffer error Jun 22 23:10:18 myserver saslauthd[3971]: DEBUG: auth_pam: pam_authenticate failed: Memory buffer error Jun 22 23:10:19 myserver saslauthd[3972]: DEBUG: auth_pam: pam_authenticate failed: Memory buffer error Jun 22 23:10:19 myserver saslauthd[3968]: DEBUG: auth_pam: pam_authenticate failed: Memory buffer error Jun 22 23:10:20 myserver saslauthd[3969]: DEBUG: auth_pam: pam_authenticate failed: Memory buffer error Jun 22 23:10:20 myserver saslauthd[3967]: DEBUG: auth_pam: pam_authenticate failed: Memory buffer error Jun 22 23:10:21 myserver saslauthd[3971]: DEBUG: auth_pam: pam_authenticate failed: Memory buffer error Jun 22 23:10:21 myserver saslauthd[3972]: DEBUG: auth_pam: pam_authenticate failed: Memory buffer error Jun 22 23:10:22 myserver saslauthd[3971]: DEBUG: auth_pam: pam_authenticate failed: Memory buffer error
每次我必须重新启动服务器才能正常工作。
我也总是从未知的IP地址find下面重复的错误日志(我不确定它是否相关):
Jun 21 06:48:43 myserver sshd[1687]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=************ user=root Jun 21 06:48:45 myserver sshd[1708]: Failed password for root from ######## port 60021 ssh2 Jun 21 06:48:47 myserver sshd[1708]: Failed password for root from ######## port 60021 ssh2 Jun 21 06:48:47 myserver sshd[1708]: Received disconnect from #######: 11: [preauth] Jun 21 06:48:47 myserver sshd[1708]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=************ user=root Jun 21 06:48:47 myserver sshd[1730]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=************ user=root Jun 21 06:48:48 myserver sshd[1732]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost============= user=root Jun 21 06:48:48 myserver sshd[1730]: Failed password for root from ************ port 60094 ssh2 Jun 21 06:48:50 myserver sshd[1732]: Failed password for root from ============ port 40613 ssh2 Jun 21 06:48:50 myserver sshd[1730]: Failed password for root from ************ port 60094 ssh2 Jun 21 06:48:50 myserver sshd[1734]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=************ user=root Jun 21 06:48:52 myserver sshd[1736]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=************ user=root Jun 21 06:48:52 myserver sshd[1732]: Failed password for root from ============ port 40613 ssh2 Jun 21 06:48:52 myserver sshd[1730]: Failed password for root from ************ port 60094 ssh2 Jun 21 06:48:52 myserver sshd[1730]: Received disconnect from ***********: 11: [preauth] Jun 21 06:48:52 myserver sshd[1730]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=*********** user=root Jun 21 06:48:52 myserver sshd[1734]: Failed password for root from ######## port 47803 ssh2 Jun 21 06:48:54 myserver sshd[1736]: Failed password for root from ######## port 55371 ssh2 Jun 21 06:48:54 myserver sshd[1732]: Failed password for root from ============ port 40613 ssh2
感谢那个post的回答: https : //askubuntu.com/questions/645036/mail-server-memory-buffer-error
根据https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=758660 saslauthd在一些login(成功和/或失败)后停止运行。
您不需要重新启动整个服务器,以下就足够了:
service saslauthd restart
你可以把它放到一个crontab中。
如果很多login源自相同的恶意IP,您可以从防火墙的IP中删除请求,使saslauthd持续更长时间,例如iptables -A INPUT -s 185.29.11.6 -j DROP