How-To Geek

How to Backup Your Web-Based Email Account Using Thunderbird


If the Gmail scare earlier this week has you thinking about backing up your Gmail or other web-based email account, we’re here to help. Read on to learn how to backup your web-based email using open source email application Thunderbird.

In case you missed it, earlier this week Gmail suffered an unusual series of glitches that led to 0.02% of Gmail users finding their inboxes totally empty. The good news is that the glitch was fixed and no actual data was lost (they restored the missing email from tape backups that were unaffected by the issue). While that’s wonderful nobody lost any important emails it’s also very unsettling. Not every “Oops, we lost your data!” scenario ends so well. Today we’re going to walk you through backing up your email using the free and robust open-source application Thunderbird.

What You’ll Need


You won’t need much for this tutorial, just a few minutes to set it up and the following:

  • A copy of Thunderbird for your OS (available for Windows/Mac/Linux)
  • Login information for your web-based email provider.

For this tutorial we’ll be using Thunderbird for Windows and Gmail. The steps we’ll be guiding you through, however, will work for Thunderbird on any OS and for any web-based email provider which allow you to access your email through a third-party client—in fact, Thunderbird does an excellent job detecting the necessary information just from your email address.

Enabling Remote Access and Email Server Information2011-03-01_134727

Depending on the web-based email you’re using you may need to enable access before proceeding. In the case of Gmail, our test service for this tutorials, you’ll need to navigate to Options –> Mail Settings –> Forwarding and POP/IMAP and then toggle the following settings 1. Enable POP for all mail and 2. When messages are accessed with POP keep Gmail’s copy in the Inbox.

Installing and Configuring Thunderbird


Installing Thunderbird is straight forward but there are a few things you may want to consider based on your needs and desire for additional backups. If you’re a Windows user you may consider opting to install Thunderbird portable so that you can have a totally self-contained installation suitable for transferring/backing up to a USB drive. Also, depending on which backup service you use and how much space you have, you might consider installing Thunderbird to your Dropbox (or similar service) directory so that your local backup will also be stored remotely.

If you’re satisfied with a local backup (or your backup service nabs your entire drive at one time) go ahead and proceed with the installation without any modifications.

After running Thunderbird for the first time, navigate to Tools –> Account Settings and then click on Account Actions (located in the lower left corner).


Fill in your username and password then click continue. For a significant number of web-mail providers Thunderbird will auto-populate the server information (courtesy of the Mozilla ISP Database) as seen in the screenshot below. We’re going to switch from the default of IMAP to POP. If you were planning on using Thunderbird as your daily email client, IMAP would be a vastly superior choice (IMAP allows you to work with email like a remote access file share instead of downloading it to your local machine). For our archiving purpose, however, POP is a superior choice as it will easily and with no fuss download all the old email messages (not just the new ones). If you find yourself wanting to use Thunderbird as a full time client, you can easily switch back to IMAP once you have an archive of your old emails.


Click Create Account and you’re in business. Thunderbird will authenticate your account against the server and warn you if the authentication fails. Baring that, you’ll find yourself back at the Account Settings screen.

While we’re still in the Account Settings screen we need to check a few very important settings before leaving. Click on Server Settings under your account login name on the left hand side of the window. We need to make a few adjustments here. Change the Check for new messages every 10 minutes setting to 1 minute. For the initial download we need the frequency of checks really high. Also make sure Leave messages on server is checked and uncheck For at most… and Until I delete them.


Before we leave the configuration stage, click on the Junk Settings at the top of the left hand column and uncheck Enable adaptive junk mail controls…, the Thunderbird spam filtering is great when you’re using it as a primary client but we don’t want it to do anything but a straight download of our messages. Under Disk Space make sure Don’t delete any messages is checked (it should be, by default). This operation is totally backup-oriented. We don’t want Thunderbird getting any wise ideas and deleting anything.

When you’re done click OK in the corner and return to the main Thunderbird dashboard. If Thunderbird isn’t already downloading email, click Get Mail in the corner to start the process.


At this point everything is on autopilot. Thunderbird will continue to check your email every minute and download new messages bit by bit. Here is one of the quirks of POP downloading, each batch will be roughly 400-600 messages in size. You’ll never see a massive download of all your email at one time. Be prepared, if you have a big account, to leave it running for awhile. In the case of our test account it took 37 batches to download all 17,000+ emails dating back almost a decade.

When the downloading is done you’ll have an up-to-date backup of your Gmail (or other web-based email) account. All you need to do in the future is run Thunderbird to grab the newest emails and update your archive.

Have a pressing question about your email or other technological issues? Hit us up for an answer at and we’ll do our best to help.

Jason Fitzpatrick is a warranty-voiding DIYer who spends his days cracking opening cases and wrestling with code so you don't have to. If it can be modded, optimized, repurposed, or torn apart for fun he's interested (and probably already at the workbench taking it apart). You can follow him on if you'd like.

  • Published 03/1/11

Comments (15)

  1. notovny

    When I set up Thunderbird to do this about a year ago, I also set it up as an automated task in iWindows to launch at 5AM Sunday, Tuesday, Thursday, and Saturday, and quit (well, force-crash) at 6AM, because if I’d had to remember to launch it every so often, I’d eventually forget.

  2. Kalpesh

    Very wonderful article. But can I get all the sent mail also ???

  3. Thorrrr

    Hi Guys

    Not sure if your articles has caused anissue at Gmail. I was getting 437 emails per batch overnight it has dropped to 2 messages.
    Not sure if the Gmail servers are overloaded or they have a throttle on. But at 2 messagers a minute it will take 4 years to backup.:)

    Lets hope it clears.


  4. Cambo

    This is kind of pointless. Gmail’s servers are well backed up…and any outage will likely only last a couple of hours.

  5. Robin Mathew Rajan

    Well, you didn’t specify how to backup mails in YahooMail or Hotmail with Thunderbird. Please specify how?

  6. Martin Parker


    Definitely not pointless. I have been without GMail for four days! I am now researching other options for my email as I cannot accept being denied access for that length of time. Also, there was no contact from GMail, despite me sending a number of emails to them.

    It was very worrying, because initially the warning simply said that the account was not accessible but would be available soon. The next day I tried to login and it said my account had been disabled because of “perceived violations of Google T&C’s”!!! Three days later, without any contact, my account is now available again, but does not appear to be working correctly yet.

    Free or not, this kind of problem has left me worried and I will be moving away from GMail. While the account was inaccessible, I could not get to any of my old emails and had no idea if I would ever be able to get them back. Not acceptable, sorry!

  7. quixote

    Since you suggest using POP/IMAP which works fine with Gmail… the regular Yahoo! Mail account does not provide POP or IMAP remote management, it’s web-based only… or have I missed something?? As far as I’m concerned, one has to sign up for Yahoo Pro for any forwarding or other features.

    Too many windmills…

  8. ramesh

    Microsoft Outlook also does the same job

  9. Fyrewerx

    @quizote… you are correct. One would have to purchase a Yahoo Plus email account (approx. $20/year) to be able to use this method of backing up email. Of course, you get the added bonus of no advertising.

  10. rihatum

    Instead of purchasing a yahoo mail plus account, it may be good to go for “Microsoft Exchange Online” email account (if one is willing to spend) it costs around £20 a month and gives 5 mailboxes with superb access speeds and support.

  11. will

    thanx, works great with gmail, no more monitoring browser tabs to monitor my multipliable gmail accounts, i can do all that with thunderbird

  12. Z1gguratVert1go

    If you archive stuff in Gmail this will not touch that, nor will it touch what you have sent, which can be just as valuable.

    My solution was to configure Thunderbird with IMAP and set the All Mail folder to do a full offline sync. This will take a while. When it is done, create a local folder and copy (COPY, not cut) the All Mail into the local folder and name it after that day’s date. Then after that setting up another account in POP mode will maintain a constant trickle of new stuff, though not stuff that has been sent by you so keep that in mind.

  13. williamwclee

    but if i always have mails stored in separate folders in my Gmail account, how to get them backed up?

  14. Z1gguratVert1go

    Everything lives in All Mail, so it may not be sorted but it’s backed up. If you let Windows Vista’s or Windows 7’s or OS X’s indexing index your Thunderbird folders, you can use that to search rapidly for something. Thunderbird has a search too. Also if you install Google Desktop for Linux I think it can index email too (check its settings).

    If you don’t mind the redundancy, you could also set those labels in Gmail to sync via IMAP (that’s a checkbox in the Labels setting page in Gmail), then when you launch Thunderbird it will show those labels as folders. Right click on those folders and set them for offline use and they will download everything not just the subject headers (again, be patient, that might take a long time if you have a lot of stuff).

  15. andrew

    Can I specific to download (back up) only a specific folder, not All Mail?

More Articles You Might Like

Enter Your Email Here to Get Access for Free:

Go check your email!