Odoo Help


Cannot connect to gmail server

Christian Parent
on 4/11/14, 12:21 PM 11,328 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--
--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.

Nick Ace
On 2/6/18, 5:39 AM

My test works, its the gmail captha : https://www.google.com/accounts/DisplayUnlockCaptcha 

James White
On 8/16/17, 8:49 PM

If you generally need to approve a new account sign-in whenever you use GMail on another app, then your solution is to create an App Password.

Great link here: Google: Sign in using App Passwords (https://support.google.com/accounts/answer/185833?hl=en)

In case that link vanishes, here is the basics of what it says:


When you sign up for 2-Step Verification, we normally send you verification codes. However, these codes do not work with some apps and devices, like Outlook (or Odoo!!). Instead, you’ll need to authorize the app or device the first time you use it to sign in to your Google Account by generating and entering an App password.


  1. Visit your App passwords (https://security.google.com/settings/security/apppasswords) page. You may be asked to sign in to your Google Account.
  2. At the bottom, click Select app and choose the app you’re using.
  3. Click Select device and choose the device you’re using.
  4. Select Generate.
  5. Follow the instructions to enter the App password (the 16 character code in the yellow bar) on your device.
  6. Select Done.

Once you are finished, you won’t see that App password code again. However, you will see a list of apps and devices you’ve created App passwords for.

Murugan Chinnasamy
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

2 follower(s)


Asked: 4/11/14, 12:21 PM
Seen: 11328 times
Last updated: 2/6/18, 5:39 AM