在Ubuntu服务器中使用sendmail发送电子邮件的问题

时间:2020-06-26 09:59:19

标签: php ubuntu smtp sendmail

我正在尝试使用sendmail在服务器中发送电子邮件。我尝试在php中和从终端使用邮件功能:echo“ Subject:Try” | sendmail example@gmail.com,但是当我查看mailq时收到一些错误消息。它显示为“延迟:连接因smtp.lg.ehu.eus超时”或“延迟:alt4.gmail-smtp-in.l.google.com:没有主机路由”。

enter image description here 我可以上网,可以ping smtp.gmail.com

这些是通过telnet在端口25上连接到smtp.lg.ehu.eus的结果: enter image description here

如果您能帮助我,我将不胜感激

0 个答案:

没有答案