使用sendmail发送单个电子邮件大约需要15秒。
/var/log/mail.log:
Jul 31 09:52:42 piotr-probook sendmail[2912]: My unqualified host name (piotr-probook) unknown; sleeping for retry
/ etc /主机名:
piotr-probook
/ etc / hosts:
127.0.0.1 piotr-probook localdev localhost
192.168.1.1 router
/etc/mail/sendmail.cf:
# hosts file (normally /etc/hosts)
O HostsFile=/etc/hosts
显然piotr-probook
,当我键入url时,可以在浏览器中ping 主机和HTTP服务器弹出窗口http://piotr-probook
我究竟做错了什么?如何解决该问题?
piotr-probook.localdomain
到/ etc / hosts,一切正常