2012-04-07 70 views
0

我有我的服務器從Centos的4.9升級至CentOS 6.2sendmail記錄錯誤到我的httpd error_log?

下面一行是越來越登錄自己的的/ etc/httpd的/日誌/ error_log中(沒有時間戳,但是它會記錄至少每隔幾秒鐘) :

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

任何想法,這可能是或我怎麼能阻止這種錯誤記錄到日誌中?


所有我能想到的是做以下......而長看哪,我得到了同樣的錯誤:

[email protected] [/]# whereis sendmail 
sendmail: /usr/sbin/sendmail /usr/lib/sendmail 
[email protected] [/]# /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? 
[email protected] [/]# /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

T他爲我固定它:

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