我是一名学生协会的wabmaster,并且正在邮寄工作。然而在它之后的第二天它将不再起作用。我在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邮件的解决方案不起作用,因为使用phpmailing我们每小时只能发送一封邮件。
答案 0 :(得分:0)
您要求连接到smtp.googlemail.com
,但它已连接到sh3.hosty.nl
;这意味着您的ISP正在拦截您的流量并将您重定向到他们的邮件服务器,这当然无法与您要求连接的名称相匹配,从而导致TLS失败。
This exact scenario。您需要询问您的ISP如何发送电子邮件;他们可以通过自己的邮件服务器提供网关服务。