IMAP 10060 error, connect/read but can't send/recieve?

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

IMAP 10060 error, connect/read but can't send/recieve?

Post by JAB Creations »

I can connect and read email (both webmail and through Thunderbird) but when I send email from Thunderbird using the account to itself (the same account) I get error 10060. I can connect and read email fine but not send it...and everything worked fine three days ago when I last had time to work on it.

Outlook gives me this error (I mainly test with Thunderbird though)...
An unknown error has occurred. Account: 'account@domain.com', Server: 'mail.example.com', Protocol: SMTP, Server Response: '421 Cannot connect to SMTP server xx.xxx.xxx.xx (xx.xxx.xxx.xx:xx), connect error 10060', Port: 25, Secure(SSL): No, Server Error: 421, Error Number: 0x800CCC67
Suggestions on how to determine if the web server/IMAP service is down?
User avatar
ghurtado
Forum Contributor
Posts: 334
Joined: Wed Jul 23, 2008 12:19 pm

Re: IMAP 10060 error, connect/read but can't send/recieve?

Post by ghurtado »

I would try to telnet to the IP of the SMTP server on port 25 and see if you get a response.
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: IMAP 10060 error, connect/read but can't send/recieve?

Post by JAB Creations »

Thanks for your suggestion though in telnet I typed open[Enter], then my domain name[Enter], and after half a minute I get "could not connect to host on port 23" error. I'm reasonably capable with a little guidance.
User avatar
ghurtado
Forum Contributor
Posts: 334
Joined: Wed Jul 23, 2008 12:19 pm

Re: IMAP 10060 error, connect/read but can't send/recieve?

Post by ghurtado »

You need to specify the port when you connect via telnet, since you are trying to connect to a different port, something like: telnet domainname.com 25
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: IMAP 10060 error, connect/read but can't send/recieve?

Post by JAB Creations »

I was using the colon between the .com and the port number just up to when you posted. I tried a few ports and when I tried the IMAP port (143) I got the following...
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THRE
AD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyr
ight 1998-2005 Double Precision, Inc. See COPYING for distribution information.
I presume this means IMAP is working?

Another thing I tried was connecting to IMAP with the webmail app I've been working on and this ends up dieing regardless of which account I connect to...just to read!

Code: Select all

$mbox = imap_open("{mail.example.com:143/notls}", $mail, $pass); $headers = @imap_headers($mbox) or die("Couldn't get emails");
User avatar
ghurtado
Forum Contributor
Posts: 334
Joined: Wed Jul 23, 2008 12:19 pm

Re: IMAP 10060 error, connect/read but can't send/recieve?

Post by ghurtado »

Well, now we are talking about IMAP, but the original post mentioned an error on port 25 (SMTP). It sounds SMTP is not enabled, but IMAP is, which means you have to reconfigure your mail application to connect to an IMAP server, not SMTP. The two are mutually exclusive.
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: IMAP 10060 error, connect/read but can't send/recieve?

Post by JAB Creations »

1.) Originally could connect to my personal account with PHP script but after deleting/recreating the account I can not.
2.) Sending email from a Yahoo account earlier received an error message without any details.
3.) Sending an email from Yahoo now results in no server replies...but they don't show up in Thunderbird/Outlook Express.
4.) Thunderbird/Outlook Express can connect to the account and see messages.
5.) Deleted the account via cPanel, now can't access folders (I attempted to "subscribe" in Thunderbird as it suggested).
6.) It's not a storage or bandwidth issue, especially since it's the first of the month.
7.) Sent an email from Yahoo to a non-existent account...no return message as would be expected.

Anything else I can try? My whole day has been totally blown and my webhost doesn't wake up until 5pm. :evil:
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: IMAP 10060 error, connect/read but can't send/recieve?

Post by VladSun »

IMAP is for retrieving emails and SMTP is for sending emails ...
So which one is your problem?
There are 10 types of people in this world, those who understand binary and those who don't
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: IMAP 10060 error, connect/read but can't send/recieve?

Post by JAB Creations »

None of the accounts through cPanel and any of the webmail clients installed through cPanel display any new email. The same goes for software clients (Thunderbird/Outlook Express).

So no matter how I try to send email to any account nothing is received. Now I receive no error messages from the server either!

I was able to login to IMAP via telnet!

Code: Select all

. login username@domain.com password
list "" "*"
That seems to work fine and my inbox appears blank (even though I've been sending it test messages all day).

I also just did a tracert to the imap server and it looks fine.

I've used the cPanel registry export to check the outgoing settings and they match in both Thunderbird and Outlook. I only use those software clients for testing...but even if I email myself through the site using PHP's mail function none of the accounts are able to RECEIVE email.
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: IMAP 10060 error, connect/read but can't send/recieve?

Post by JAB Creations »

Doing a telnet to port 25 (SMTP port) times out. If I login to that port on my domain should something appear just like on port 143 with IMAP?
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: IMAP 10060 error, connect/read but can't send/recieve?

Post by JAB Creations »

Forgot about this thread...yeah my host is a lazy idiot: the SMTP service has been down for almost a week now and he hasn't noticed. This page helped clarify what the error numbers actually meant...
http://kb.mozillazine.org/Connection_errors_-_SMTP

Time to find a new webhost...one of the most time consuming and obnoxious and heavily trial and error laden things when dealing with the web.
Post Reply