Odoo Help


Cannot connect to gmail server

Christian Parent
on 4/11/14, 12:21 PM 7,853 views

I am on v8, trying to configure imap outgoing and incoming.

I am using the exact same settings as in thunderbird account.


Servername : smtp.googlemail.com port: 465 username: christian.parent@ekyrail.com Password: ** Connection Security: SSL/TLS

I keep getting an authentification error.

I know that my credential are good, I have tried it. I also tried to do it with my gmail.com email adress, same issue. I have also tried with my local isp settings and it works.

The problem seem to be with gmail only !

Anyone have faced this issue ?

Looks like if I use a gmail account, it will work but, if I use a domain gmail hosted accout (http://ekyrail.com) it wont connect to it !

Christian Parent
on 4/11/14, 2:54 PM
saritha sahadevan
On 1/23/17, 4:57 AM

Authentication failure may arise due to Invalid response code received from server ( Due to error in the SMTP  Server name).So check your smtp server name is correct .And if that's right ,check your username and password.

For outgoing Sever:
Server name : smtp.gmail.com

Port: 465   

User name: something@gmail.com


If this doesn't Work,Then you may be under proxy.

If you are under a proxy

1) Just remove your username and password and click on test connection. see if your connection succeeds

2)Then use this IP instead of smtp.gmail.com

If still it's not working means that the port number of 465 is not opened for your IP. Type 'telnet 465' in your command line.It  should Work


Bejaoui Souheil

--Bejaoui Souheil--
| 2 1 5
Rennes, France
--Bejaoui Souheil--

Odoo developer,  functional and technical consultant


Bejaoui Souheil
On 8/12/16, 2:07 PM


You have to allow less secure apps to access to your account. By default gmail block odoo and other apps to coonect to your account.

This may help:


Best regards.

On 1/24/17, 2:44 AM

This working try it.




| 5 6 8
Cornwall, Canada

Analysing, designing, coding and mentoring since 1975. Kilobytes to terabytes. Punch cards to punchy sites. My OpenERP video series: http://www.youtube.com/playlist?list=PLq7op4J183lX44ZlXPiHxUpRvmmRDtxye My Google Speadsheets --> OpenERP Data Pump project: http://martinhbramwell.github.io/GData_OpenERP_Data_Pump My email (with spaces removed) : mhb . warehouseman @ gmail . com

On 4/14/14, 10:57 AM

The answer to that problem is to create and use a dedicated "consumer" GMail account, without any special features.

Choosing a suitable name that clarifies its purpose might be a good idea.

Part #3 of this series might help you confirm that you are doing all that is necessary: OpenERP and Google

On 4/14/14, 7:45 AM

For outgoing Sever:

  • Servername : smtp.gmail.com
  • port: 587
  • username: example@example.com
  • Password: "your pasword" or if you have two step verification on then use one time application password
  • Connection Security: SSL/TLS

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 4/11/14, 12:21 PM
Seen: 7853 times
Last updated: 1/24/17, 2:44 AM