Set Up Gmail in Thunderbird: Step-by-Step Guide
In this article
To set up Gmail in Thunderbird, you'll need to enable two-step verification and create an app password, then add your Gmail account using Thunderbird's automatic configuration. This guide walks you through the exact steps, including the necessary Gmail security settings, and covers common pitfalls.
What You'll Need
- A Gmail account (you must know your password and have access to the account).
- Thunderbird installed on your computer (latest version recommended).
- A web browser to access Gmail settings.
- Your phone (if you haven't already set up two-step verification, you'll need it to receive a code).
Step-by-Step
- Enable two-step verification in Gmail – Open your web browser, go to myaccount.google.com/security, and sign in. Under “How you sign in to Google,” click “2-Step Verification.” Follow the prompts to turn it on. This is required for Thunderbird to work securely with Gmail.
- Create an app password – After enabling 2-Step Verification, go back to the same security page. Click “App passwords” (you may need to sign in again). Select “Mail” as the app and “Other” as the device (you can type “Thunderbird” as the name). Click “Generate.” Google will show a 16-character password (like
abcd efgh ijkl mnop). Copy it or keep the window open – you'll need it in a moment. - Open Thunderbird – Launch Thunderbird on your computer. If it's your first time, you'll see the account setup wizard. If you already have an account, go to Tools > Account Settings (or Edit > Account Settings on Windows) and click “Account Actions” > “Add Mail Account.”
- Enter your Gmail address – In the setup window, type your full Gmail address (e.g.,
you@gmail.com) and click “Continue.” Thunderbird will try to auto-detect the settings. It should find the correct IMAP and SMTP servers automatically. If it does, skip to step 6. If not, click “Manual config” and use the settings below. - Configure the server settings manually (if needed) – For incoming (IMAP): server
imap.gmail.com, port993, SSL/TLS, authentication “OAuth2” (or “Normal password” if you're using an app password). For outgoing (SMTP): serversmtp.gmail.com, port465(SSL/TLS) or587(STARTTLS), authentication “OAuth2” or “Normal password.” The username is your full Gmail address. Leave the “Global Inbox” option unchecked. - Click “Re-test” and then “Done” – Thunderbird will verify the settings. If all is correct, click “Done” to create the account.
- Authorize the connection – A browser window will open asking you to sign in to your Google account. Sign in, then click “Allow” to grant Thunderbird access. If you used an app password instead of OAuth2, you'll be prompted to enter it in Thunderbird – paste the 16-character password you generated earlier.
- Set your name and email address – Thunderbird will ask for your display name (what recipients see) and your email address. Fill them in and click “Continue.”
- Finish and test – After the account is added, Thunderbird will start downloading your emails. Send a test email to yourself to confirm sending works. You can also check the folder list – you should see Inbox, Sent, Drafts, etc.
Common Mistakes
- Skipping 2-Step Verification – Without it, you cannot create an app password, and Thunderbird will keep rejecting your regular password.
- Using your regular Gmail password – Gmail no longer allows third-party apps to log in with your normal password. You must use an app password or OAuth2.
- Typing the app password with spaces – Google shows the app password with spaces for readability, but you should enter it without spaces (e.g.,
abcd efgh ijkl mnopbecomesabcdefghijklmnop). - Choosing the wrong authentication method – If you select “Normal password” but haven't created an app password, it won't work. Use “OAuth2” if you prefer not to use an app password.
- Wrong port numbers – Using port 110 (POP3) or port 25 (SMTP) will fail. Stick to the IMAP/SMTP ports listed above.
Tips
- Use IMAP (not POP3) so your emails stay synchronized across all devices. POP3 downloads emails and deletes them from the server by default, which can cause you to lose emails on your phone.
- If you have a lot of email, let Thunderbird finish the initial sync before you start searching – it can take a while.
- Keep the app password safe – it's as powerful as your Gmail password. If you lose it, you can revoke it from Google's security page and create a new one.
- If you use a corporate or school Gmail account, your administrator might block app passwords. In that case, you'll need to use OAuth2 (which Thunderbird supports) or contact your admin.
- Thunderbird's automatic configuration usually works. Only use manual config if it fails.
Troubleshooting
“Configuration could not be verified” error – Double-check your server names and ports. Make sure you're using imap.gmail.com and smtp.gmail.com. Also ensure you've enabled “Less secure app access” is NOT needed – that option is deprecated. The correct path is 2-Step Verification + app password or OAuth2.
Thunderbird asks for password repeatedly – If you're using OAuth2, make sure you clicked “Allow” in the browser window. If you're using an app password, ensure you entered it without spaces and that you haven't revoked it accidentally.
“Login to server failed” – This usually means your app password is wrong or expired. Go back to Google's app password page and generate a new one, then update it in Thunderbird (Account Settings > Server Settings > Password).
Emails not sending – Check your SMTP settings: port 465 with SSL/TLS, or port 587 with STARTTLS. Also make sure your outgoing server requires authentication (it should be set to “Normal password” or “OAuth2” with your Gmail address).
No folders appear – If you see only Inbox and no other folders, go to Account Settings > Server Settings and click “Advanced” – ensure “Show only subscribed folders” is unchecked. Then right-click the account name and choose “Subscribe” to select all folders.
Still stuck? – Remove the account from Thunderbird (Account Settings > Account Actions > Remove Account) and start over from step 3. Also restart Thunderbird after changing Gmail security settings.
Frequently Asked Questions
Do I really need to enable 2-Step Verification?
Yes, because Google requires it to generate an app password. Without it, you can only use OAuth2, which Thunderbird supports, but app passwords are simpler for many users.
What is an app password?
It's a 16-character password that Google generates specifically for third-party apps like Thunderbird. It grants access to your Gmail without exposing your main password.
Can I use POP3 instead of IMAP?
Yes, but it's not recommended. POP3 downloads emails to your computer and deletes them from the server, so you'll lose emails on other devices. IMAP keeps everything synced.
Will Thunderbird work with Gmail's two-factor authentication?
Yes, either through OAuth2 (which opens a browser window to log in) or by using an app password. Both are secure.
I'm using a work Gmail account – why can't I create an app password?
Your organization's administrator may have disabled app passwords. You'll need to use OAuth2 (which Thunderbird supports) or ask your admin to enable it.
How do I change my Gmail password in Thunderbird?
Go to Account Settings > Server Settings > Password, and enter your new app password (or re-authenticate via OAuth2). If you changed your Gmail password, you'll need to generate a new app password as well.