sendmail发送邮件问题 nagios发送报警邮件出现如下错误: warning: Contact 'nagiosadmin' service notification command '/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\n\nService: port80\nHost: My Windows Server\nAddress: 192.168.128.129\nState: WARNING\n\nDate/Time: Thu May 6 16:53:01 CST 2010\n\nAdditional Info:\n\nNo data was received from host!" | /bin/mail -s "** PROBLEM Service Alert: My Windows Server/port80 is WARNING **" carcarcar123@126.com' timed out after 30 seconds
然后直接在命令下输入:echo "this is test letter " |mail -s "test" carcarcar123@126.com 可以收到,为何?