不能用mail()函数发送邮件
Oct 19 22:56:39 localhost sendmail[31320]: My unqualified host name (localhost) unknown; sleeping for retry
Oct 19 22:57:39 localhost sendmail[31320]: unable to qualify my own domain name (localhost) — using short name
Oct 19 22:57:39 localhost sendmail[31320]: m9JEvdL4031320: from=nginx, size=687, class=0, nrcpts=0, msgid=<200810191457.m9JEvdL4031320@localhost>, relay=nginx@localhost
Oct 19 22:58:04 localhost sendmail[31729]: My unqualified host name (localhost) unknown; sleeping for retry
Oct 19 22:59:04 localhost sendmail[31729]: unable to qualify my own domain name (localhost) — using short name
Oct 19 22:59:04 localhost sendmail[31729]: m9JEx4XA031729: from=nginx, size=816, class=0, nrcpts=0, msgid=<200810191459.m9JEx4XA031729@localhost>, bodytype=8BITMIME, relay=nginx@localhost
解决办法
>>hostname wduw
>>vi /etc/hosts/
192.168.0.84    wduw    wduw
>>rc-update add sendmail default
>>reboot
>>/etc/init.d/sendmail status
 * status:  started