2013-02-08 395 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。
相關問題