我刚将服务器从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?
答案 0 :(得分: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#
答案 1 :(得分:0)
这为我解决了这个问题:
chown root:mailtrap /usr/sbin/sendmail
chmod 2755 /usr/sbin/sendmail