Hide the user agent when sending emails with Thunderbird - gHacks Tech News

Hide the user agent when sending emails with Thunderbird

Thunderbird, and other mail clients as well, include information in each email you sent that reveal information about your operating system, the mail program and the version of it that you are using. While that is certainly not an issue if you are sending an email to your mum, close friends or other contacts you know, you are better of not to reveal what you are using to someone that you do not trust or know.

The reason for this is simple: The operating system and mail client can provide malicious users with information that they can use to attack your system. Say they notice that you are running an older version of Thunderbird or another email client with known vulnerabilities. They can then use the information to attack your system efficiently thanks to those information that you have provided them with.

thunderbird user agent

You can check the user agent in Thunderbird by either enabling full headers under View > Headers > All, or by clicking on Other Actions > View Source.

The user agent on the screenshot above reveals the operating system, Windows 7 64-bit, the email client and the version of that client.

There is unfortunately no switch in the program's settings to change the user agent in Thunderbird. What you need to do is add a hidden parameter to the advanced configuration to do that. Here is how this is done.

Open the settings of the email program with a click on Tools > Options. Switch to the Advanced tab here and click on Config Editor under General. You may see a warning message if that is your first time opening the about:config window. If that is the case click on I'll be careful to continue.

Right-click in the parameter window and select New > String from the options. Enter general.useragent.override in the first form that pops up, and nothing in the second. This sets the user agent to a blank and that is what recipients see when they analyze the email header.

thunderbird block user agent

It is unfortunately not that easy to remove the preference again. For that you need to edit the prefs.js file in your Thunderbird profile. You should find it under Windows 7 in the C:\Users\username\AppData\Roaming\Thunderbird\Profiles\random.default folder. Locate the general.useragent.override line and delete it completely. Make sure Thunderbird is closed when you edit the file.





  • We need your help

    Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

    We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats (video ads) or subscription fees.

    If you like our content, and would like to help, please consider making a contribution:

    Comments

    1. peter said on September 8, 2012 at 12:58 pm
      Reply

      Good tip, does this work in Ubuntu ?

    2. peter said on September 8, 2012 at 1:02 pm
      Reply

      Will this work on Ubuntu ?

      1. Martin Brinkmann said on September 8, 2012 at 1:07 pm
        Reply

        yes

    3. james said on September 8, 2012 at 2:21 pm
      Reply

      Thanks for this. I always wondered if people could see that info about my email client if they elected to view header details. BTW, I tried this on Postbox 3.0.5 and it didn’t work.

    4. edeemc said on September 9, 2012 at 9:44 am
      Reply

      I want to do it with my Opera M2 email client, Is it possible ?
      So that no one could trace email I send to them are using Opera’s

      1. Martin Brinkmann said on September 9, 2012 at 10:11 am
        Reply

        I’m not aware of a setting that lets you do that. Maybe an Opera expert could chime in here.

    5. Crodol said on September 9, 2012 at 10:01 am
      Reply

      Thanks for the tip!

    6. Ken Saunders said on September 11, 2012 at 1:02 am
      Reply

      Very cool tip. Thanks!

    Leave a Reply