#251 imap authentication with gmail fails

open
nobody
None
5
2012-07-20
2012-06-21
rgm
No

Have installed MRBS , and it works fine with default alice / a and administrator / secret.Now I am trying to change authentication to gmail IMAP. Enabled IMAP in the gmail account. DIsabled 2 factor authentication in gmail settings. Changed no files except config.inc.php - added a section as given below, but if fails to logon.
I try to logon using id abcd@... and the password I input is the same as my gmail password. Thunderbird logs on with the same password.
Please help.
Thank you
/****
* Custom settings
***/

$mrbs_admin = "Nice admin";
$mrbs_admin_email = "niceadmin@..." niceadmin@...;

$mrbs_company = "xya";

$mrbs_company_url = "http://www.abcd.com/" http://www.abcd.com/;

/****
* Custom Authentication
***/
$auth["type"] = "imap";
unset($auth["admin"]); // Include this when copying to
config.inc.php
//$auth["admin"][] = "administrator";
$auth["admin"][] = "abcd@..." abcd@...;

// 'auth_imap' configuration settings
// See AUTHENTICATION for details of how check against multiple servers
// Where is the IMAP server
$imap_host = "imap.gmail.com";
// The IMAP server port
$imap_port = "993";

// You can also specify any of the following options:
// Specifies the port number to connect to
//$auth["imap_php"]["port"] = 993;
// Use SSL
$auth["imap_php"]["ssl"] = TRUE;
// Use TLS
//$auth["imap_php"]["tls"] = TRUE;
// Turn off SSL/TLS certificate validation
//$auth["imap_php"]["novalidate-cert"] = TRUE;
rg

Discussion


Anonymous


Cancel   Add attachments