There was no way to set encryption type in outbound SMTP settings, and I fixed this issue, by allowing admins to enter encryption type(allowed values are '', 'ssl' and 'tls'). This code will be part of next Zurmo stable release(which we will release in next few days), but if you are using Mercurial you can get current bleeding version of Zurmo and be able to use Gmal SMTP server.

One more thing, about Google SMTP ports/encryption. Port is related to encryption which you are using, so if you are using 'ssl' you must use port 465, and if you are using 'tls' encryption, you must use port 587.

I am using zurmo-stable-1.0.20.46, and i also use the same for gmail, but its not working. Can you please tell me proper steps how to do resolve this. and you said "properly configured the CRON for send mails", can you please tell me how to do this.

To use a GMail account for outbound smtp from Zurmo you should use the following credentials, replacing the specifics with the details of your own GMail account of course.

Host: smtp.gmail.com

Username: myaccount@gmail.com

Password: *****

Extra Mail Settings: ssl

Port: 465

If you receive the following message when attempting to send a test email then the issue is that Gmail has blocked access from your server IP address believing the sign-in attempt to be a hijacker trying to access your account.

Check your Gmail inbox, you have likely received an email from no-reply@accounts.google.com saying that "Someone recently tried to use an application to sign in to your Google Account". You should scroll to the bottom of the email and follow the link to complete the troubleshooting steps. On the page that loads follow the link "https://accounts.goo...ayUnlockCaptcha" and click the "Continue" button, you will now see the following text.

"Sign in using the application you want to authorize access to your account within the next ten minutes. Google will remember the application after it signs in, and will allow it to access your account in the future as long as it uses the correct password."

Restart your browser and log back into Zurmo, now test your SMTP settings again. This time Gmail should accept the connection and your test mail should be delivered.

I know this thread is old, but I wanted to add something for future users who are having issues getting Google Apps to work.

I was having repeated issues with getting Zurmo to connect to the Google Apps SMTP server, even after following the instructions in this thread. It could connect to the local SMTP server just fine. It was only Google that was the problem.

I was getting Error #110, which basically said "The server can't be reached". I don't remember the exact message.

What I realized was that my firewall was blocking outgoing connections on Port #465. I went into my firewall settings, unblocked it, and it worked like magic! :-)

Anyway... I thought I'd post it as a suggestion here just in case anyone else runs into the same issue.

Attached Thumbnails

I'll add for the sake of others looking, for those of you getting a timeout error..

I am running Zurmo on a cpanel server (dedicated) with CSF/LFD running. By default, to reduce the possibility of relaying spam, the server will not allow outgoing connections to other SMTP servers except by root and cpanel users. This threw me off because I tested the connection to gmail's smtp from a root ssh window and it worked, so I couldn't understand why it wouldn't work in Zurmo.

YMMV on a shared hosting environment, but if you have WHM access, you can go into ConfigServer Security & Firewall, click Firewall Settings, find the SMTP Settings area, and add the username of the account Zurmo is running under in the SMTP_ALLOW_USER

Also Ross's post above is a little outdated. For those of you getting the "Failed to authenticate on SMTP server with username "xxxx" using 2 possible authenticators", Follow the link in the security email that gmail sends you for "allow less secure apps" and turn that on.