Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-core/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Logging sendmail日志记录错误到我的httpd错误日志?_Logging_Centos_Sendmail - Fatal编程技术网

Logging sendmail日志记录错误到我的httpd错误日志?

Logging sendmail日志记录错误到我的httpd错误日志?,logging,centos,sendmail,Logging,Centos,Sendmail,我刚把服务器从Centos 4.9升级到Centos 6.2 以下行正在被记录到my/etc/httpd/logs/error\u log(没有时间戳,但至少每隔几秒钟记录一次): 你知道这可能是什么,或者我怎样才能阻止这个错误被记录下来吗 我所能想到的就是做以下事情。。。久而久之,我也犯了同样的错误: root@vps1 [/]# whereis sendmail sendmail: /usr/sbin/sendmail /usr/lib/sendmail root@vps1 [/]# /u

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

以下行正在被记录到my/etc/httpd/logs/error\u log(没有时间戳,但至少每隔几秒钟记录一次):

你知道这可能是什么,或者我怎样才能阻止这个错误被记录下来吗


我所能想到的就是做以下事情。。。久而久之,我也犯了同样的错误:

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?

通过简单地重建sendmail就解决了这个问题

主机支持人员还向我发送了以下信息(可能有助于其他人查找此错误)

这为我解决了这个问题:

chown root:mailtrap /usr/sbin/sendmail
chmod 2755 /usr/sbin/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# 
chown root:mailtrap /usr/sbin/sendmail
chmod 2755 /usr/sbin/sendmail