我现在是一个学生会的校长,并开始工作。然而,第二天它就不起作用了。我在smtp日志中找不到任何真正的错误代码,主机说它不阻止此服务。这是日志:
[06-Feb-2017 14:34:27 Europe/Amsterdam] Connection: opening to smtp.googlemail.com:587, timeout=300, options=array ( ) [06-Feb-2017 14:34:27 Europe/Amsterdam] Connection: opened [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "" [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "220-sh3.hosty.nl ESMTP Exim 4.87 #1 Mon, 06 Feb 2017 14:34:27 +0100 " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "220-sh3.hosty.nl ESMTP Exim 4.87 #1 Mon, 06 Feb 2017 14:34:27 +0100 " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "220-We do not authorize the use of this system to transport unsolicited, " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "220-sh3.hosty.nl ESMTP Exim 4.87 #1 Mon, 06 Feb 2017 14:34:27 +0100 220-We do not authorize the use of this system to transport unsolicited, " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "220 and/or bulk e-mail. " [06-Feb-2017 14:34:27 Europe/Amsterdam] SERVER -> CLIENT: 220-sh3.hosty.nl ESMTP Exim 4.87 #1 Mon, 06 Feb 2017 14:34:27 +0100 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. [06-Feb-2017 14:34:27 Europe/Amsterdam] CLIENT -> SERVER: EHLO example.com [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "" [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "250-SIZE 52428800 " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] 250-SIZE 52428800 " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "250-8BITMIME " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] 250-SIZE 52428800 250-8BITMIME " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "250-PIPELINING " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "250-AUTH PLAIN LOGIN " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "250-STARTTLS " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "250 HELP " [06-Feb-2017 14:34:27 Europe/Amsterdam] SERVER -> CLIENT: 250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP [06-Feb-2017 14:34:27 Europe/Amsterdam] CLIENT -> SERVER: STARTTLS [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "" [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "220 TLS go ahead " [06-Feb-2017 14:34:27 Europe/Amsterdam] SERVER -> CLIENT: 220 TLS go ahead [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP Error: Could not connect to SMTP host. [06-Feb-2017 14:34:27 Europe/Amsterdam] CLIENT -> SERVER: QUIT [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "" [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "221 sh3.hosty.nl closing connection " [06-Feb-2017 14:34:27 Europe/Amsterdam] SERVER -> CLIENT: 221 sh3.hosty.nl closing connection [06-Feb-2017 14:34:27 Europe/Amsterdam] Connection: closed [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP Error: Could not connect to SMTP host. [06-Feb-2017 14:34:27 Europe/Amsterdam] Connection: opening to smtp.googlemail.com:587, timeout=300, options=array ( ) [06-Feb-2017 14:34:27 Europe/Amsterdam] Connection: opened [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "" [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "220-sh3.hosty.nl ESMTP Exim 4.87 #1 Mon, 06 Feb 2017 14:34:27 +0100 " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "220-sh3.hosty.nl ESMTP Exim 4.87 #1 Mon, 06 Feb 2017 14:34:27 +0100 " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "220-We do not authorize the use of this system to transport unsolicited, " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "220-sh3.hosty.nl ESMTP Exim 4.87 #1 Mon, 06 Feb 2017 14:34:27 +0100 220-We do not authorize the use of this system to transport unsolicited, " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "220 and/or bulk e-mail. " [06-Feb-2017 14:34:27 Europe/Amsterdam] SERVER -> CLIENT: 220-sh3.hosty.nl ESMTP Exim 4.87 #1 Mon, 06 Feb 2017 14:34:27 +0100 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. [06-Feb-2017 14:34:27 Europe/Amsterdam] CLIENT -> SERVER: EHLO example.com [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "" [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "250-SIZE 52428800 " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] 250-SIZE 52428800 " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "250-8BITMIME " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] 250-SIZE 52428800 250-8BITMIME " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "250-PIPELINING " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "250-AUTH PLAIN LOGIN " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "250-STARTTLS " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "250 HELP " [06-Feb-2017 14:34:27 Europe/Amsterdam] SERVER -> CLIENT: 250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP [06-Feb-2017 14:34:27 Europe/Amsterdam] CLIENT -> SERVER: STARTTLS [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "" [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "220 TLS go ahead " [06-Feb-2017 14:34:27 Europe/Amsterdam] SERVER -> CLIENT: 220 TLS go ahead [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP Error: Could not connect to SMTP host. [06-Feb-2017 14:34:27 Europe/Amsterdam] CLIENT -> SERVER: QUIT [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "" [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "221 sh3.hosty.nl closing connection " [06-Feb-2017 14:34:27 Europe/Amsterdam] SERVER -> CLIENT: 221 sh3.hosty.nl closing connection [06-Feb-2017 14:34:27 Europe/Amsterdam] Connection: closed [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP Error: Could not connect to SMTP host.
禁用smtp邮件的解决方案不起作用,因为使用phpmail,我们每小时只能发送1封邮件。
您正在请求连接到smtp。谷歌邮件。com,但它正在连接到sh3。霍蒂。nl
;这意味着您的ISP正在拦截您的流量并将您重定向到他们的邮件服务器,当然,该服务器与您请求连接的名称不匹配,从而导致TLS故障。
错误链接到的故障排除指南中介绍了这一具体情况。您需要询问您的ISP如何发送电子邮件;他们可以通过自己的邮件服务器提供网关服务。