Can't connect to gmail-imap.l.google.com,993

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
supratik
Forum Newbie
Posts: 2
Joined: Fri Aug 22, 2008 12:16 am

Can't connect to gmail-imap.l.google.com,993

Post by supratik »

Hi all,
I am using php-imap to read mails from my gmail account, but when I try the script from browser it shows this error "Can't connect to gmail-imap.l.google.com,993: Permission denied".
I am using Fedora Core 9, I have already installed in my system openssl-0.9.8g-6.fc9.i686, php-5.2.6-2.fc9.i386 and I have installed php-imap-5.2.6-2.fc9.i386 using 'yum install php-imap'.

The phpinfo() displays in the IMAP section as
IMAP c-Client Version 2004
SSL Support enabled
Kerberos Support enabled

This is my PHP script
<?php
$imap = imap_open ("{imap.gmail.com:993/imap/ssl/novalidate-cert}INBOX", "my.test@gmail.com", "xxxxxxx")
or die("can't connect: " . imap_last_error());

$message_count = imap_num_msg($imap);
print $message_count;
imap_close($imap);
?>
can anyone please tell me where I am going wrong, also please help me to configure my Linux box for php-imap from scratch.
Please let me know if more information is required.
Please help me !

Supratik
User avatar
ghurtado
Forum Contributor
Posts: 334
Joined: Wed Jul 23, 2008 12:19 pm

Re: Can't connect to gmail-imap.l.google.com,993

Post by ghurtado »

Looks like a couple guys are having the same problem as you, read this:

http://www.google.com/search?q=gmail+im ... =firefox-a
Post Reply