Thunderbird and Gmail

Thunderbird Thunderbird Last updated: 61% of users voted this helpful
No one has helped translate this article yet. If you already know how localizing for SUMO works, start translating now. If you want to learn how to translate articles for SUMO, please start here.

Thunderbird can be configured to work seamlessly with Google's Gmail service. Messages are synchronized between your local version of Thunderbird and the web-based Gmail.

As of May 30, 2022, Google no longer allows Less secure apps access for Gmail accounts, thus OAuth is required. If you are using Google supplied “app passwords“, Thunderbird version 91.8.0 and newer will make that conversion for you. Further, Gmail accounts do not work with Thunderbird 31 and older because they do not support Google's OAuth (implemented in bug 849540).

Configuring your Gmail account

To configure Thunderbird to work with Gmail, first ensure IMAP is enabled on your Gmail account (the default for new Gmail accounts). See Gmail's instructions for help.

Double check that “Access for less secure apps” is enabled. See Google's article on “less secure apps” for help.

Next, select File > New > Existing Mail Account… The Mail Account Setup dialog is displayed. After you provide your account information (real name, email address, password), Thunderbird will automatically configure your Gmail connection. Click Done, sign in with your Google account if prompted. Thunderbird will begin downloading your existing messages.

Lastly, review Google's recommended settings for Thunderbird so that your local actions, such as labelling and deleting, correspond to those which Gmail takes and do not cause any conflicts.

For more detailed information, please refer to:

Gmail's particularities

Archiving messages

In order to be consistent with Gmail's behavior, Thunderbird archives your message in the All Mail folder, and not in an Archive folder as it does for other accounts (as described in the Archived Messages article).

Gmail Archive settings
The Archive options… button is disabled for Gmail accounts, as it is not necessary to define the archive granularity with Gmail.

Subscribing to folders and synchronizing messages

Understanding Gmail labels and Thunderbird folders

Gmail uses a special implementation of IMAP. In this implementation, Gmail labels become Thunderbird folders. When you apply a label to a message in Gmail, Thunderbird creates a folder with the same name as the label and stores the message in that folder. Similarly, if you move a message to a folder in Thunderbird, Gmail will create a label with the folder name and assign it to the message.

If you copy a message to another folder, Gmail will still store only one message but apply both folder names as labels to it. Moving any copy of a message into the Trash will remove all labels from it, and it will no longer appear in any other folder.

In the example shown below, the folders at the same level as the [Gmail] folder (Personal, Receipts, Travel and Work) correspond to Gmail labels.

default gmail folders

There is also a set of special sub-folders for the [Gmail] folder:

  • All Mail: contains all the messages of your Gmail account, including sent and archived messages. Any messages that you see in the inbox will also appear in the [Gmail]/All Mail folder. (It is recommended to unsubscribe this folder.)
  • Drafts: contains draft messages.
  • Sent Mail: contains sent messages.
  • Spam: contains messages that were marked as spam (either by Gmail or Thunderbird).
  • Starred: contains messages that were starred (either by Gmail or Thunderbird).
  • Trash: contains deleted messages.
  • Important: contains messages that Gmail has flagged as “important”. (See Priority Inbox overview for more details about this Gmail feature.)

Subscribing to or unsubscribing from folders (labels)

You can configure which folder (and its messages) you want to display and download in Thunderbird by changing folder subscriptions. By default, all folders are displayed and downloaded, as described above. To change folder subscription, right-click the account name and select Subscribe…

subscribe gmail folders

Uncheck any folders that you don't want to display in Thunderbird.

For performance and space reasons it is recommended to unsubscribe the All Mail folder.


Synchronizing folders (labels)

If you want to see all your Gmail labels and messages in Thunderbird but prefer to avoid all the messages being downloaded to your system, you may want to tweak the synchronization settings. This allows you to define which folder should be synchronized. If you don't synchronize a folder, the message header will still be displayed in Thunderbird, but the message content will only be downloaded when you click the message header.

To change how messages are downloaded, set synchronization options for the account and for individual folders. (Tools > Account Settings…Edit > Account Settings…) See IMAP Synchronization for more information.

Thunderbird's message lists differ from the web interface

If some messages are appearing in your Inbox that shouldn't be, or aren't appearing but should be, you may need to select the Don't override filters option under Inbox > Filtered mail in Gmail's settings. The same can be achieved by turning off General > Smart features and personalisation in Gmail's settings.

You can also change whether Gmail's interface should group messages by conversation with the Conversation View setting in Gmail's General settings page, to match your Thunderbird preference.

See the support article on how to change Gmail settings.

Updating a Gmail account to use OAuth

Thunderbird will normally set up or update your Gmail account to OAuth automatically. If something goes wrong, you can use the hints below to check and set up manually. For more details and how to resolve various OAuth issues, see Automatic Conversion of Google mail accounts to OAuth 2.0 Authentication.

The following applies to both POP and IMAP mail accounts.

  • Enable cookies in Thunderbird:
    1. Click > Settings.
    2. Select Privacy & Security.
    3. Under Web Content section, tick Accept cookies from sites.
  • You may need to set an exception:
    1. Click Exceptions… button.
    2. Add an exception for https://accounts.google.com
    3. Click Allow.
    4. Click Save Changes.
  • Change the authentication method in Account Settings:
    1. Click > Account Settings, which opens in a new tab.
    • Change the Outgoing SMTP authentication method:
      1. In the left pane, select the POP/IMAP account name and look bottom right for Outgoing Server (SMTP).
      2. Click Edit Server SMTP… button.
      3. Set Authentication Method to OAuth2.
      4. Click OK.
    • Change the Incoming authentication method:
      1. In the left pane, select Server Settings for Gmail account.
      2. Set Authentication Method to OAuth2.

Exit Thunderbird and wait a few moments for background processes to finish. Then restart Thunderbird.

Gmail will prompt you to enter your Gmail email address and password, which is the same password you use to access Gmail webmail account. Follow the instructions to allow Thunderbird to access server.

An OAuth token will get saved in Thunderbird, in the same location as passwords.

Useful Add-ons

See also

Was this article helpful?

Please wait...

These fine people helped write this article:

Illustration of hands

Volunteer

Grow and share your expertise with others. Answer questions and improve our knowledge base.

Learn More