View Full Version : Connecting to Gmail does not work
tomacpace
11-04-2009, 11:37 PM
Hi all.
I am trying to connect and download messages, using the IMAP functions of PHP. It works on my local home test network connecting to Gmail, but not on Bluehost.
I use this PHP command:
$box = imap_open("{imap.gmail.com:993/ssl/}", $account, $pass);
Seems to timeout after 190 seconds. imap_timeout(IMAP_OPENTIMEOUT, 5) doesn't seem to do anything.
a call to imap_errors() returns an array with
"Can't connect to gmail-imap.l.google.com,993: Connection timed out"
Any idea if Bluehost has disabled connections outgoing to a remote port 993?
Connections to other SSL remote sites works using curl, but this destination requires this one port.
Hope someone can help. I'm going to call the technical support tomorrow.
-Tom
EricJ
11-04-2009, 11:59 PM
yes that port is disabled by default, if you need it opened up you will need a dedicated ip. As far as I know, everything outbound except for 80 is blocked.
tomacpace
11-05-2009, 09:48 AM
Good to know.
I just called Bluehost, talked with both of sales and technical support, and they both told me the same info:
Dedicated IP addresses are only applied to the primary domain on the account, no add-on domains. Connections other than port 80 can only be opened by calling bluehost to request it
The dedicated IP for specific domains is important for incoming network connections like if I wanted to host a shopping cart, but for outgoing, it doesn't really matter. I don't have the need to support incoming SSL just yet.
If I have a script that wants to connect to a remote server on a port other than 80, getting a dedicated IP will work.
So many millions of variables in life, isn't there?
EricJ
11-06-2009, 01:58 AM
It is interesting that they said that the dedicated IP is only for your main domain. Unless they've changed the system lately, the dedicated IP gets used by all of your domains, not just the primary. I think what they were trying to say is you only get one dedicated ip per account.
DON.PARKER.FAB
11-08-2009, 07:14 AM
It is interesting that they said that the dedicated IP is only for your main domain. Unless they've changed the system lately, the dedicated IP gets used by all of your domains, not just the primary. I think what they were trying to say is you only get one dedicated ip per account.
So All Other {Ports} Are Blocked ? Apart From Port 80 ?
What If you wanted to run a BT tracker. Not For Illegal Use ? You would need more ports open than port 80
farcaster
11-08-2009, 09:09 AM
If you are running on a shared IP address, the only open ports available to you are 80 and 443.
If you get a dedicated IP address, you must ask support to open other ports for you, as needed.
webbster
11-10-2009, 06:02 PM
It is interesting that they said that the dedicated IP is only for your main domain. Unless they've changed the system lately, the dedicated IP gets used by all of your domains, not just the primary. I think what they were trying to say is you only get one dedicated ip per accounthttp://bodybuilderspro.info/customimages/4/1240197088/random.gif.
I'm pretty sure you can issue a dedicated for whatever domain you need it to be issued for.
EricJ
11-10-2009, 08:48 PM
I'm pretty sure you can issue a dedicated for whatever domain you need it to be issued for.
Nope. All domains on the account will resolve to the same Dedicated IP address. If you type the dedicated IP into a browser you will see what shows when you visit your main domain. There is only one dedicated IP per account.
Brent2
11-11-2009, 12:54 AM
Dedicated IPs used to open all ports on an account. Now they open ports manually for you but still require the dedicated IP address.
In general they'll open anything that's not normally restricted (ports above 1024 for the most part). There are some exceptions. cPanel, webmail, WHM, etc. stay closed even though their in the 2900s. They'll also open 993 and 995, even though they're below 1024.
Unsurprisingly they won't open 25, 587 or 465. Not happy about the potential for uncontrolled Spam I suppose.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.