Gmail SMTP Problems with the OutSystems Platform

Gmail SMTP Problems with the OutSystems Platform

  
Hi everyone,

We became aware of this issue today (July 24th 2014): you might be running into problems if you are using Gmail SMTP server as your SMTP server on the OutSystems Platform.

If you are using Gmail as your SMTP server and you find this error message on the OutSystems Platform logs, then you might be facing this issue:
?
Error sending email 
?1?
: 530 5.7.0 Must issue a STARTTLS command first.

We didn't change anything on the OutSystems Platform, but we've already confirmed that Google changed the way their SMTP server is working.

We are already investigating this issue and we'll keep you posted about it.

Best regards,
Nuno Parreira
Hi, Nuno!
We have the same problem.
Nuno -

That error means you need to use TLS authentication with SMTP to send email. :(

J.Ja
Hi guys,

We are alredy working on a fix for this issue. We've found that the problem is related to a false positive Gmail SMTP is giving us:

220 mx.google.com ESMTP de5sm6730102wib.18 - gsmtp

EHLO

250-mx.google.com at your service, [80.251.174.45]

250-SIZE 35882577

250-8BITMIME

250-STARTTLS

250-AUTH LOGIN PLAIN XOAUTH XOAUTH2 PLAIN-CLIENTTOKEN

250-ENHANCEDSTATUSCODES

250-PIPELINING

250 CHUNKING


As you can see, the AUTH LOGIN is one of the authorized methods, but when we try it:

AUTH LOGIN

530 5.7.0 Must issue a STARTTLS command first. wd7sm25910944wjc.36 - gsmtp

This is what is causing the problem with the SMTP of Gmail.

Isn't Google -- and everyone else -- moving to a "alway encrypt" model?

I'm guessing, if that is the case, it won't be easy to fix this, you'll need to add TLS support to your code and then get a client certificate...
Hi Carlos,

Actually the platform always tries to use the TLS if it's avalialable on the command list.
The problem that happened here (throubleshooted after Nuno post) was actually that due to recent changes to the way google is responding to the smtp protocol the platform is failing to read the "250-STARTTLS" line correctly, and then fallsback to try without TLS.


Regads,
João Rosado
Hello everyone,

A provisional fix is now available for version 8. Any customer affected by this issue should contact Product Support so we can make it available. The permanent fix will be released in an upcoming release.

The fix is not yet ready for Personal Environments. As an alternative to Gmail, you can use another SMTP service - for example, I suggest the one here.

Cheers,
João Atalaia.
Hi Everyone,

We now have a version of the platform with fix for this issue (8.0.1.23). As this is still a release candidate you can find it here.

Cheers,
João Atalaia
I also encountered this case, I think it is the fault of the system in google, or by incorrect configuration error at port position
João Atalaia wrote:
Hi Everyone,

We now have a version of the platform with fix for this issue (8.0.1.23). As this is still a release candidate you can find it here.

Cheers,
João Atalaia
 Link is not working ...
 
Hi Joop,

It's no longer a Release Candidate, so you can get it on the normal download section
http://www.outsystems.com/home/downloads

Regards,
João Rosado
Hi team!

Is this fix available on the personal environments?

Cheers!
Davide
Hi Davide,

The fix is not yet available for Personal Environments. As an alternative to Gmail you can use another (check suggestion here) SMTP service. We'll let you know if the fix becomes available before we upgrade environments to release 9 later this year.

Cheers.