2013-02-08 111 views
1

我使用Blat这是从命令发送邮件的命令行工具。运行blat命令发送邮件时,无法连接到服务器(超时如果winsock.dll错误10060)

首先我运行安装命令来存储它创建类似的注册表条目的邮件服务器.........

enter image description here

首先我是在SMTP服务器设置为smtp.mail.yahoo.com但错误是一样的。

之后,我执行

blat C:\temp.txt -to [email protected] -superdebug 

之后,这个错误我.......

C:\blat310\full>blat C:\temp.txt -to [email protected] -superdebug 
Blat v3.1.0 (build : Feb 2 2013 11:00:32) 
32-bit Windows, Full, Unicode 

Checking option -to 
superDebug: init_winsock(), WSAStartup() returned 0 (NO_ERROR) 
superDebug: Hostname <smtp.mail.apac.gm0.yahoodns.net> resolved to ip address 10 
6.10.167.87 
superDebug: Official hostname is smtp.mail.apac.gm0.yahoodns.net 
superDebug: Attempting to connect to ip address 106.10.167.87 
superDebug: ::connect() returned error 10060, retry count remaining is 1 
superDebug: ::connect() returned error 10060, retry count remaining is 0 
superDebug: Connection returned error 10060 
Error: Can't connect to server (timed out if winsock.dll error 10060) 
superDebug: ::say_hello() failed to connect, retry count remaining is 1 
superDebug: init_winsock(), WSAStartup() returned 0 (NO_ERROR) 
superDebug: Hostname <smtp.mail.apac.gm0.yahoodns.net> resolved to ip address 10 
6.10.167.87 
superDebug: Official hostname is smtp.mail.apac.gm0.yahoodns.net 
superDebug: Attempting to connect to ip address 106.10.167.87 
superDebug: ::connect() returned error 10060, retry count remaining is 1 
superDebug: ::connect() returned error 10060, retry count remaining is 0 
superDebug: Connection returned error 10060 
Error: Can't connect to server (timed out if winsock.dll error 10060) 

回答

1

错误10060意味着你的连接超时,这是因为没有什么听在端口995上的smtp.mail.yahoo.comsmtp.mail.apac.gm0.yahoodns.net。你为什么试图连接到那个端口呢?它用于通过SSL的POP3(即邮件检索),而不是用于SMTP(邮件提交)。

尝试端口25或(更可能)端口587.后者是消息提交的默认端口(有关详细信息,请参阅RFC 4409)。

+0

是的,它的工作现在我设置端口25 ............. :) – vikky 2013-02-11 06:00:24

0

你10060超时错误是最有可能被你的邮件服务器不听 BLAT默认SMTP端口#25

很多ISP邮件服务器已经切换到SSL加密authenication引起的。此开关意味着使用SMTP端口#465.但是,Blat目前不支持SSL。

你要么必须:

  1. 问你的ISP的邮件服务器,打开非SSL通信,或
  2. 获得SSL封装的BLAT(如Stunnel的),或
  3. 找到另一个命令行邮件程序支持SSL。
相关问题