I was able to get both inbound and outbound mail to work. I am running on Apache2 w/ PHP 5.0 and OpenSSL and eGroupware 1.4.004.
Incoming IMAP
hostname: imap.gmail.com
port: 993
username: username@gmail.com
password: password
encrypted connection: SSL
Do not validate certificate: checked
server supports mailfilter(sieve): checked
port: 2000
Outgoing
hostname: ssl://smtp.gmail.com
port: 465
authentication required: checked
username: username@gmail.com
password: password
In order to make outgoing mail work I had to edit the /phpgwapi/inc/class.phpmailer.inc.php file
For details search google for gMail phpmailer
Basically, under the function SmtpConnect() there is a section right before this line
if($this->smtp->Connect($host, $port, $this->Timeout));
I don’t have what the code looked like before but I changed it to:
if(strstr($hosts[$index], ":"))
{
$hostA = explode(':', $hosts[$index]);
if (is_numeric(end($hostA)))
$port = array_pop($hostA);
else
$port = $this->Port;
$host = implode(':', $hostA);
}
else
{
$host = $hosts[$index];
$port = $this->Port;
}