0

我刚刚将我的服务器从 Centos 4.9 升级到 Centos 6.2

以下行被记录到我的/etc/httpd/logs/error_log(没有时间戳,但它至少每隔几秒记录一次):

sendmail: Not running with correct effective GID.  Is sendmail binary setgid mailtrap?

知道它可能是什么或如何阻止此错误以被记录吗?


我能想到的只是做以下事情......而且很长一段时间,我得到了同样的错误:

root@vps1 [/]# whereis sendmail
sendmail: /usr/sbin/sendmail /usr/lib/sendmail
root@vps1 [/]# /usr/lib/sendmail stop
sendmail: Not running with correct effective GID.  Is sendmail binary setgid mailtrap?
sendmail: Not running with correct effective GID.  Is sendmail binary setgid mailtrap?
root@vps1 [/]# /usr/lib/sendmail restart
sendmail: Not running with correct effective GID.  Is sendmail binary setgid mailtrap?
sendmail: Not running with correct effective GID.  Is sendmail binary setgid mailtrap?
4

2 回答 2

0

只需重建 sendmail 即可解决该问题

主机支持还向我发送了以下信息(可能会帮助其他人查找同样的错误)

-bash-4.1# hostname
vps1.myhostname.com
-bash-4.1# sendmail
Exim is a Mail Transfer Agent. It is normally called by Mail User Agents,
not directly from a shell command line. Options and/or arguments control
what it does when called. For a list of options, see the Exim documentation.
-bash-4.1# 
于 2012-04-07T23:13:28.733 回答
0

这为我修复了它:

chown root:mailtrap /usr/sbin/sendmail
chmod 2755 /usr/sbin/sendmail
于 2012-11-27T22:28:55.293 回答