Add gmail account to thunderbird results in "Unable to connect" error in popout
Hi,
So I am trying to add my gmail to my thunderbird client.
I get into "Set Up Your Existing Email Address" with no issues, I enter full name and email. Then when hitting continue it automatically figures out the imap settings, which after checking are correct. I then click "Done" which opens up a popup window to login to gmail and authenticate, under the url https://accounts.google.com/ServiceLogin?continue=....
So I follow the steps, entering my email, clicking next, enter password, sign in. This takes me to the "Mozilla Thunderbird Email wants to access your Google Account", to which I click allow.
Upon doing this it redirects to 127.0.0.1:8008/index.html - and this then gives the "Unable to connect" page
""" The connection was refused when attempting to contact 127.0.0.1:8008.
The site could be temporarily unavailable or too busy. Try again in a few moments. If you are unable to load any pages, check your computer's network connection. If your computer or network is protected by a firewall or proxy, make sure that Thunderbird is permitted to access the Web.
"""
Thunderbird never asks for permissions for the windows firewall so I disabled that just in case, but when checking what TCP ports are opened, 8008 is never opened by Thunderbird.
So I try to just close this window and continue but when I close it I then get told by Thunderbird "Unable to log in at server. Probably wrong configuration, username or password". Upon pressing the "Done" button again, it starts the popup again.
Am I missing something?
Chosen solution
Toad-Hall said
Do you have any program that uses 'localhost' eg: Apache If yes, please disable it. After setting up the connection to get OAuth token, you can enable it again.
There are a lot of programs using localhost, the specific key was port 80 on localhost. Disabling nginx (which was only using 127.0.0.1:80) allowed it to succeed.
I appreciate the pointer as it ultimately led to me finding the cause :)
Read this answer in context 👍 0All Replies (3)
Do you have any program that uses 'localhost' eg: Apache If yes, please disable it. After setting up the connection to get OAuth token, you can enable it again.
Your Firewall needs to have Thunderbird as an allowed program.
Thunderbird needs to have cookies enabled to get Oauth set up. Menu icon > Settings > Privacy & Security WEb Content Select checkbox 'Accept cookies from sites'
it may be worth creating an exception - click on 'Exceptions' button Enter: https://accounts.google.com set to 'Allow' click on 'Save Changes'
Chosen Solution
Toad-Hall said
Do you have any program that uses 'localhost' eg: Apache If yes, please disable it. After setting up the connection to get OAuth token, you can enable it again.
There are a lot of programs using localhost, the specific key was port 80 on localhost. Disabling nginx (which was only using 127.0.0.1:80) allowed it to succeed.
I appreciate the pointer as it ultimately led to me finding the cause :)