Author Topic: Gmail goes imap!  (Read 14447 times)

Online SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Gmail goes imap!
« on: October 24, 2007, 04:00:00 PM »
Thats right Google has gone to imap, So you can now access your Google account from roundcube! You first need to enable in in your Gmail account (Note, This has not been installed on all gmail accounts yet, don't worry it will be there in the next couple of days). Here is were the data is: http://mail.google.com/support/bin/answer.py?answer=78799

Offline zabulus

  • Newbie
  • *
  • Posts: 6
Re: Gmail goes imap!
« Reply #1 on: November 02, 2007, 05:27:11 AM »
Hi,

I got it up and running - but I not able to send emails using googles imaps server....

it tells me:
Code: [Select]
[[02-Nov-2007 10:17:40 +0100] SMTP Error: SMTP error: Authentication failure: SMTP server does no support authentication in /var/www/roundcubemail_svn/trunk/roundcubemail/program/steps/mail/sendmail.inc on line 334

my conf looks like:
Code: [Select]
// use this host for sending mails.
// to use SSL connection, set ssl://smtp.host.com
// if left blank, the PHP mail() function is used
$rcmail_config['smtp_server'] = 'smtp.gmail.com';

// SMTP port (default is 25; 465 for SSL)
$rcmail_config['smtp_port'] = 465

// SMTP username (if required) if you use %u as the username RoundCube
// will use the current username for login
$rcmail_config['smtp_user'] = 'xxxx@gmail.com';

// SMTP password (if required) if you use %p as the password RoundCube
// will use the current user's password for login
$rcmail_config['smtp_pass'] = 'xxxx';

// SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
// best server supported one)
$rcmail_config['smtp_auth_type'] = 'LOGIN';

// SMTP HELO host
// Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages IN
// Leave this blank and you will get the server variable 'server_name' or
// localhost if that isn't defined.
$rcmail_config['smtp_helo_host'] = '';

// Log sent messages
$rcmail_config['smtp_log'] = TRUE;

Has anyone set it up with googles imap server ?

Thx

Zabi
Debian, Apache2, Exim4 mit Courier IMAP Server + Spamassasin + Mailscanner
www.zabulus.de

Online SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Gmail goes imap!
« Reply #2 on: November 02, 2007, 10:51:30 PM »
Try using this as your smtp server:
Code: [Select]
$rcmail_config['smtp_server'] = 'ssl://smtp.gmail.com';

Offline zabulus

  • Newbie
  • *
  • Posts: 6
Re: Gmail goes imap!
« Reply #3 on: November 03, 2007, 03:19:27 PM »
Thx - that works !!!

Code: [Select]
// use this host for sending mails.
// to use SSL connection, set ssl://smtp.host.com
// if left blank, the PHP mail() function is used
$rcmail_config['smtp_server'] = 'ssl://smtp.gmail.com';

// SMTP port (default is 25; 465 for SSL)
$rcmail_config['smtp_port'] = 465;

// SMTP username (if required) if you use %u as the username RoundCube
// will use the current username for login
$rcmail_config['smtp_user'] = '%u';

// SMTP password (if required) if you use %p as the password RoundCube
// will use the current user's password for login
$rcmail_config['smtp_pass'] = '%p';

// SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
// best server supported one)
$rcmail_config['smtp_auth_type'] = 'LOGIN';
Debian, Apache2, Exim4 mit Courier IMAP Server + Spamassasin + Mailscanner
www.zabulus.de

Offline hungrycoder

  • Newbie
  • *
  • Posts: 5
Re: Gmail goes imap!
« Reply #4 on: November 06, 2007, 05:07:23 AM »
dear,
i can't connect to gmail using the following configuration. I get the error message:
"Connection to IMAP server failed"

someone plz help me :'(

Code: [Select]
// automatically create a new RoundCube user when log-in the first time.
// a new user will be created once the IMAP login succeeds.
// set to false if only registered users can use this service
$rcmail_config['auto_create_user'] = TRUE;

// the mail host chosen to perform the log-in
// leave blank to show a textbox at login, give a list of hosts
// to display a pulldown menu or set one host as string.
// To use SSL connection, enter ssl://hostname:993
$rcmail_config['default_host'] = 'ssl://imap.gmail.com';

// TCP port used for IMAP connections
$rcmail_config['default_port'] = 993;

// Automatically add this domain to user names for login
// Only for IMAP servers that require full e-mail addresses for login
// Specify an array with 'host' => 'domain' values to support multiple hosts
$rcmail_config['username_domain'] = '';

// This domain will be used to form e-mail addresses of new users
// Specify an array with 'host' => 'domain' values to support multiple hosts
$rcmail_config['mail_domain'] = '';

// Path to a virtuser table file to resolve user names and e-mail addresses
$rcmail_config['virtuser_file'] = '';

// Query to resolve user names and e-mail addresses from the database
// %u will be replaced with the current username for login.
// The query should select the user's e-mail address as first col
$rcmail_config['virtuser_query'] = '';

// use this host for sending mails.
// to use SSL connection, set ssl://smtp.host.com
// if left blank, the PHP mail() function is used
$rcmail_config['smtp_server'] = 'ssl://smtp.gmail.com';

// SMTP port (default is 25; 465 for SSL)
$rcmail_config['smtp_port'] = 465;

// SMTP username (if required) if you use %u as the username RoundCube
// will use the current username for login
$rcmail_config['smtp_user'] = '%u';

// SMTP password (if required) if you use %p as the password RoundCube
// will use the current user's password for login
$rcmail_config['smtp_pass'] = '%p';

// SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
// best server supported one)
$rcmail_config['smtp_auth_type'] = 'LOGIN';

// SMTP HELO host
// Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages
// Leave this blank and you will get the server variable 'server_name' or
// localhost if that isn't defined.
$rcmail_config['smtp_helo_host'] = '';

// Log sent messages
$rcmail_config['smtp_log'] = TRUE;

Offline tekone

  • Jr. Member
  • **
  • Posts: 27
Re: Gmail goes imap!
« Reply #5 on: November 10, 2007, 03:45:24 AM »
did you turn on IMAP in your gmail account?

Offline hungrycoder

  • Newbie
  • *
  • Posts: 5
Re: Gmail goes imap!
« Reply #6 on: November 10, 2007, 04:33:14 AM »
yep, i did it.

Offline bntix

  • Newbie
  • *
  • Posts: 1
Re: Gmail goes imap!
« Reply #7 on: November 16, 2007, 01:22:08 AM »
Quote from: hungrycoder
dear,
i can't connect to gmail using the following configuration. I get the error message:
"Connection to IMAP server failed"

someone plz help me :'(

I got the same problem here!

Enable debug, and see the error message:

Code: [Select]
IMAP Error: Could not connect to ssl://imap.gmail.com at port 993: Connection timed out

Offline dparry

  • Newbie
  • *
  • Posts: 2
Re: Gmail goes imap!
« Reply #8 on: November 22, 2007, 03:20:54 PM »
I've also got the same problem with RC2. I've got IMAP enabled on gmail and can access it with thunderbird, I've got the same config settings hungrycoder,

If anyone out there has it working, please post your conf
Thanks
David

Offline dparry

  • Newbie
  • *
  • Posts: 2
Re: Gmail goes imap!
« Reply #9 on: November 25, 2007, 10:01:58 AM »
OK, in my case it was because my ISP was blocking the ports needed for GMail's ssl to IMAP.

Offline hungrycoder

  • Newbie
  • *
  • Posts: 5
Re: Gmail goes imap!
« Reply #10 on: November 25, 2007, 01:45:36 PM »
Quote from: dparry
OK, in my case it was because my ISP was blocking the ports needed for GMail's ssl to IMAP.

yes, you are right. after your post, I contacted to my server support. they opened 993 port in firewall and RC connected to Gmail within few seconds. ;D ;D ;D ;D

thanks

Offline ImoTh3P

  • Newbie
  • *
  • Posts: 1
Re: Gmail goes imap!
« Reply #11 on: November 26, 2007, 08:56:17 PM »
Hi all,

I've some trouble to send mail from RC (Imap access works fine).

Here's a part of my config file:
Code: [Select]
// Automatically add this domain to user names for login
// Only for IMAP servers that require full e-mail addresses for login
// Specify an array with 'host' => 'domain' values to support multiple hosts
$rcmail_config['username_domain'] = '';

// This domain will be used to form e-mail addresses of new users
// Specify an array with 'host' => 'domain' values to support multiple hosts
$rcmail_config['mail_domain'] = '';

// Path to a virtuser table file to resolve user names and e-mail addresses
$rcmail_config['virtuser_file'] = '';

// Query to resolve user names and e-mail addresses from the database
// %u will be replaced with the current username for login.
// The query should select the user's e-mail address as first col
$rcmail_config['virtuser_query'] = '';

// use this host for sending mails.
// to use SSL connection, set ssl://smtp.host.com
// if left blank, the PHP mail() function is used
$rcmail_config['smtp_server'] = 'ssl://smtp.gmail.com';

// SMTP port (default is 25; 465 for SSL)
$rcmail_config['smtp_port'] = 465;

// SMTP username (if required) if you use %u as the username RoundCube
// will use the current username for login
$rcmail_config['smtp_user'] = '%u';

// SMTP password (if required) if you use %p as the password RoundCube
// will use the current user's password for login
$rcmail_config['smtp_pass'] = '%p';

// SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
// best server supported one)
$rcmail_config['smtp_auth_type'] = 'LOGIN';



The message given by errors log file is:
Quote
[27-Nov-2007 02:12:20 +0100] SMTP Error: SMTP error: Failed to set sender 'mymail@gmail.com' in /usr/share/roundcube/program/steps/mail/sendmail.inc on line 340

I've checked my server and router firewalls, all necessary ports are opened on the both devices (I can open a socket with a telnet on smtp and imap server on port 465 and 993)

I've tried to replace $rcmail_config['smtp_user'] and $rcmail_config['smtp_pass'] by my mail and my password rather than %u and %p, no more lucky...

I've no more idea...

Thks for your help

Offline calande

  • Jr. Member
  • **
  • Posts: 64
Re: Gmail goes imap!
« Reply #12 on: March 01, 2008, 07:06:31 PM »
How long does it take to show the results when you perform a search if you have a large mailbox with many email messages in your inbox? ::)

Offline jimcavoli

  • Jr. Member
  • **
  • Posts: 37
Re: Gmail goes imap!
« Reply #13 on: March 27, 2008, 01:28:43 AM »
I've got the 0.1 stable working flawlessly with GMail.
From main.inc.php:
Code: [Select]
$rcmail_config['default_host'] = 'ssl://imap.gmail.com';

// TCP port used for IMAP connections
$rcmail_config['default_port'] = 993;

$rcmail_config['smtp_server'] = 'ssl://smtp.gmail.com';

// SMTP port (default is 25; 465 for SSL)
$rcmail_config['smtp_port'] = 465;

// SMTP username (if required) if you use %u as the username RoundCube
// will use the current username for login
$rcmail_config['smtp_user'] = '%u';

// SMTP password (if required) if you use %p as the password RoundCube
// will use the current user's password for login
$rcmail_config['smtp_pass'] = '%p';

// SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
// best server supported one)
$rcmail_config['smtp_auth_type'] = '';

Works flawlessly.

Offline dehartma

  • Newbie
  • *
  • Posts: 1
1&1 - You won't believe it.
« Reply #14 on: September 16, 2008, 03:48:44 PM »
If you are using 1&1 and getting the "Authentication failure: SMTP server does no support authentication", try this. Remove the username and password from the smtp config. It worked for me. Makes me cringe that you can connect without them, but it works. At least for now!