Thunderbird:Testing:Antivirus Related Performance Issues: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
m (header width)
Line 254: Line 254:
== Microsoft Windows Defender aka "Antimalware Service Executable" (ASE) aka MsMpEng.exe ==
== Microsoft Windows Defender aka "Antimalware Service Executable" (ASE) aka MsMpEng.exe ==


Create an exception to exclude the [https://support.mozilla.org/en-US/kb/profiles-where-thunderbird-stores-user-data Thunderbird profile directory/folder] and also C:\Program Files\Mozilla Thunderbird\thunderbird.exe, using the instructions at https://support.microsoft.com/en-us/windows/add-an-exclusion-to-windows-security-811816c0-4dfd-af4a-47e4-c301afe13b26
Create exceptions to exclude the Thunderbird profile directory and executable program. Also, see [https://www.youtube.com/watch?v=zGiNGnX5dYg&ab_channel=MDTechVideos video]
 
# open Windows Security (in Settings) or Defender application
# click Virus & threat protection System > Virus & threat protection '''settings''' (if you don't find that, look for Microsoft Defender Antivirus Options > scroll down to and click Manage settings )
# '''Exclude the executable''' - scroll down to Exclusions > click 'Add an exclusion' > '''File'''
# navigate to and select the Thunderbird.exe file (usually found in <code>C:\Program Files\Mozilla Thunderbird</code>) > click 'Open'
#* If you don't find Thunderbird.exe there do TB menu > Help > Troubleshooting Information > Application Basics section > and copy what is at '''Application Binary'''
# '''Exclude all Thunderbird profile directories''' - click 'Add an exclusion' > '''Folder'''
# navigate to and select the Thunderbird Profiles folder (all profiles - usually <code>C:\Users\<username>\AppData\Roaming\Thunderbird\Profiles)</code> > click 'Select Folder'
#* If you don't find '''"Profiles"''' at the normal location do TB menu > Help > Troubleshooting Information > Application Basics section > scroll down to '''Profile Folder''' > click 'Open Folder' > navigate up one level and use the path ending in "Profiles".
#* For more information see [https://support.mozilla.org/en-US/kb/profiles-where-thunderbird-stores-user-data Thunderbird profile directory/folder].


User reports of slowness fixed by creating an exclusion for the Thunderbird profile folder. [https://support.mozilla.org/en-US/questions/1413274], [https://bugzilla.mozilla.org/show_bug.cgi?id=1924420],[https://www.reddit.com/r/Thunderbird/comments/1eo41qa/comment/lhcb6fa/ Multiple reports],  [https://www.reddit.com/r/Thunderbird/comments/1evmnz6/having_terrible_lagfreezing_only_when_downloading/], [https://support.mozilla.org/en-US/questions/1355808#answer-1461964], [https://bugzilla.mozilla.org/show_bug.cgi?id=1208116#c5], [https://support.mozilla.org/en-US/questions/1067704], [https://support.mozilla.org/en-US/questions/1152667], [https://support.mozilla.org/en-US/questions/1013191], [https://superuser.com/questions/1324436/system-slow-unresponsive-when-thunderbird-is-receiving-emails-with-windows-defen], [https://support.mozilla.org/en-US/questions/1285317], {{bug|1441918}} (Firefox), {{bug|1640725}}, [https://www.reddit.com/r/Thunderbird/comments/mbspvh/comment/ihbx4lb/?utm_source=reddit&utm_medium=web2x&context=3]
User reports of slowness fixed by creating an exclusion for the Thunderbird profile folder. [https://support.mozilla.org/en-US/questions/1413274], [https://bugzilla.mozilla.org/show_bug.cgi?id=1924420],[https://www.reddit.com/r/Thunderbird/comments/1eo41qa/comment/lhcb6fa/ Multiple reports],  [https://www.reddit.com/r/Thunderbird/comments/1evmnz6/having_terrible_lagfreezing_only_when_downloading/], [https://support.mozilla.org/en-US/questions/1355808#answer-1461964], [https://bugzilla.mozilla.org/show_bug.cgi?id=1208116#c5], [https://support.mozilla.org/en-US/questions/1067704], [https://support.mozilla.org/en-US/questions/1152667], [https://support.mozilla.org/en-US/questions/1013191], [https://superuser.com/questions/1324436/system-slow-unresponsive-when-thunderbird-is-receiving-emails-with-windows-defen], [https://support.mozilla.org/en-US/questions/1285317], {{bug|1441918}} (Firefox), {{bug|1640725}}, [https://www.reddit.com/r/Thunderbird/comments/mbspvh/comment/ihbx4lb/?utm_source=reddit&utm_medium=web2x&context=3]

Revision as of 01:06, 13 January 2025

  

This article is not just about performance issues. Antivirus software can also cause odd behavior (bad, incorrect or unusual), and crashes (random or consistent, infrequent or frequent).


Much of the information below comes from users like you.


If you have a problem that is not listed here, please add it to the list so other users can benifit. (create a wiki account, and click "edit")

Related Articles

Symptoms

Possible behaviors:

  • Mild to severe slowness in compose or message delete, archive or moves
  • Not able to get new mail
  • OS hangs or crashes
  • Images not displaying

... while doing the following:

  • Starting Thunderbird
  • Selecting a different folder
  • Opening / displaying a message or attachments
  • Deleting or archiving messages, or moving messages to a different folder
  • Replying to a message / Sending a message / Compose
  • Downloading or attempting to get new messages (receiving mail)
  • Initial mailbox indexing for global search

My Problem Cannot be Caused by Antivirus

... (you think this) because: 1) My Antivirus software has been working great and hasn't changed. 2) Thunderbird has been working great and hasn't changed. 3) Thunderbird is the only program that is affected. 4) I even tried disabling my antivirus software.

Warning signWarning: Your antivirus software has probably worked great for months or years, across many versions of Thunderbird. But this is NO guarantee it is working correctly now. Antivirus and Thunderbird are complex, and the relationship can be broken at any time. Yes even if Thunderbird is the only software affected, even if your AV version did not change. AV vendors don't always play nice, and don't always adapt their software to new versions of other software on your computer.

First Steps

Start your OS in safe mode is a quick test: Windows, or Mac. If safe mode helped, then the cause can be antivirus or other software which loaded during the OS startup.

  • *NOTE, just disabling antivirus using settings is not be a perfect test. We have seen users disable or change AV settings and see no improvement, but OS in safe mode was effective for them. In short safe mode is "more perfect".
  • If you determine AV to be a problem, then you must either disable the AV feature affecting Thunderbird (typically by excluding the Thunderbird profile), or change to a different AV program.
    • If you have altered Thunderbird to put your profile account data in a nonstandard file location then you MUST set your antivirus software to exclude these nonstandard locations.
  • Note also - run only one antivirus, one firewall, one malware (never multiples of each - more is not better)

Testing Suggests My Problem is Caused by Antivirus Software

If antivirus may be causing your problem, you have the following choices:

  • Adjust the exclusions in the antivirus software settings to stop the problem. %%
  • Turn off features in antivirus software that are not absolutely necessary. %% Some features are there to make the vendor look good against their competition, but don't actually make you much safer.
  • Inform the antivirus vendor of your problem, and be persistent in getting past a canned response that their software is not at fault.
  • Find a different antivirus software or vendor that offers more reliable service.

%% You might find suggestions below, on an antivirus website or support site, or in a bug report which flags antivirus in the whiteboard.

Disabling Antivirus and Anti-Malware Packages Did Not Work

If disabling AND safe mode had no effect, please refer to Diagnosing Memory Usage Problems & Performance.

Problem Antivirus and Anti-Malware Packages

Please see the sections above before proceeding.

Problems have been reported with:

  • AdAware
  • AGNITUM Security Suite Pro [1]
  • AGNITUM Outpost firewall [2]
  • Avast see more below - Free Antivirus 2014 Edition [3], [4],
  • AVG
  • Avira antivirus slow Mac, [5], [6]
  • Bitdefender solved by disabling BD or adding exception for Thunderbird: [7], crashes Thunderbird, [8], [9], tbird_24 very slow - solved by reinstalling BD. Mail not retrieved fixed by disabling the Anti Spam feature. [10], Mail is labelled spam and disappears (deleted on restart) [11]
  • BullGuard bug 537769 and [12] (see BullGuard solution below)
  • Cloudmark Desktopone [13]
  • Emsisoft Anti-Malware, Guard option

http://support.emsisoft.com/topic/2894-thunderbird-slows-to-a-crawl/ Nov2010 TB and Emsisoft forum post] indicates slowness may have been around since TB 3 days

  • Emsisoft Online Armor firewall - thunderbird must be set as a "trusted" program [14]
  • Eset NOD32 hangs, and network/file errors, [15], bug 541197
    Repeated attempts to create huge temporary file during message synchronization due to Eset NOD32 causes slow gloda indexing , Password prompts not appearing when POP3S scanner is enabled in ESET settings [16]
  • F-Prot (see Solution for F-Prot Antivirus below)
  • F-Secure causes Mac OS X to be slow: [17], bug 1328177
  • Kaspersky SMTP server not working after migration to outlook exchange.
  • Malaware free AV
  • McAfee: Main McAfee topic below McAfee Active Protection bug 544684 shutdown hang, {bug|1015437}} Slow getting mail
  • Microsoft Security Essentials aka MSE (Settings | Excluded Files & Folders | add your profile folder, typically c:\users\-your-user-name-\appdata\roaming\thunderbird **) [18] [19][20] bug 621083 Bug 839908
  • Panda Cloud Anti Virus Free v 2. Installed but it interfered with sending emails. Thunderbird v 24.3.0 said it could not access the temp directory although the outgoing emails were there. Thus the mail was not sent. No apparent tweaks worked. When Panda uninstalled, Thunderbird was back to normal.
  • pctools internet security 2011 bug 610106
  • Reason Core Security causes error "...unable to open the temporary file...." https://support.mozilla.org/en-US/questions/1159964
  • Secunia PSI [21] (User Contributed Notes)
    • as of January 11, 2012,by default Secunia PS 2.0 forces an update to English rather than localized Thunderbird ; WORKAROUND from secunia: "To change this, the user can double-click the program entry in the Scan Results and then choose the preferred language in the drop-down menu. We are aware that this approach may not be the most intuitive for our users and we are currently treating it as a bug. I have taken the freedom to quote your email to "bump up" our bug report and I have also raised the severity of the bug."
  • Sophos Instructions for Sophos (untested)
  • Spamfighter - due to a possible bug in Spamfighter (like Kaspersky it's not following the rules for Thunderbird add-ons), after each 3.1 upgrade you have to repair it or reinstall it (see Spamfighter solution below)
  • Symantec Norton Antivirus. [22], [23], [24], [25] Thunderbird 31 slow (see Norton's Exclusion instructions)
  • THE SHIELD bug 542156 (Bug report)
  • Symantec Norton Security Suite/NSS (offered through Comcast) *firewall* caused crash bug 598662 (Bug report)
  • Vipre If you are using the I use another email client option or the Spam Filtering option on VIPRE, please note that these do not support SSL or TLS (STARTTLS) connections. This will prevent email from sending or receiving properly when Email Protection is enabled. Disable the email scanning option in Vipre.[26] From the link Please note that if the ports for inbound or outbound emails is set to port 80 and VIPRE Internet Security is installed on the machine with the Web Filter enabled, email communication will be disrupted as the Web Filter scans all port 80 communication.
  • Virusbuster
  • Web Sweeper bug 534823 (Bug report)
  • Trend Micro Instructions to exclude, SUMO report, bug 534823 (Bug report)
  • (Others wanted, please add)

Also, several products have caused pop download errors or slowness if incoming mail is scanned [27]

Unaffected Antivirus Packages

There are currently no documented examples.

  • (Other examples wanted - please add)

Configuration Notes and Solutions for specific Anti Virus products

AVG

Feb 2019: AVG preventing Thunderbird from retrieving emails. The status bar says connected and getting mail but no mail arrives or mail arrives and is marked as read. AVG topic support here

AVG can not scan SSL connections and requires you to include it's certificates into the Thunderbird certificate store. AVG reference here

If you use AVG secure VPN you need to set up your mail client. See here It is important to not that specifying an IP address removes flexibility from your mail connection and may cause issues if the provider changes the Internet Protocol (IP) address used for the server. Normally Domain Name Services shield us from such changes by looking up the IP address on the fly.

AVG causes intermittent Not Responding in Windows 10.[28]

AVG causes unable to connect to server/gmail [29]

AVG causing crashes with Thunderbird 128

McAfee

McAfee has had major problems with Thunderbird over the years, causing crashes and poor performance, "Not Responding", "Unresponsive Script", and other issues. (For example 2023 Thunderbird gets stuck and I need to reboot SOLVED caused by McAfee[30], [31], [32], [33], [34], [35], [36], (in 2013), [37], [38], [39], [40], [41], [42], (perhaps), [43], [44], [45], [46], [47], [48], [49], [50], bug 592303, bug 1858380.)

We recommend you do all of the following:

  • Disable/delete McAfee Anti-Spam Thunderbird Extension in Thunderbird | Tools | Add-ons | Extensions (It is safe to remove the add-on, and is absolutely not needed to have excellent virus protection.) [51],[52]
  • Disable email attachment scanning in McAfee (it individually scans all emails which slows down Thunderbird) - Uncheck "Email attachments" under Real Time Scanning > Schedule and run scans > Settings > Scan these attachments and locations or (in older versions) Real Time Scanning > Settings > Scan these attachments and locations
  • Disable scanning of Thunderbird files and folders in McAfee (by default McAfee is NOT supposed to scan them):
    1. In Windows, right+click on the McAfee icon in Windows notification area (aka system tray), or start McAfee from start menu
    2. "On-Access Scan properties ..."
    3. "All processes", "Exclusions"
    4. "Exclusions ..."
    5. Add the "Thunderbird" and "Thunderbird Profile" folders and subfolders. Folder names must finish with a backslash. NOTE, if you have customized profile or account locations for mail, then you must exclude your custom locations.
  • Please write/call McAfee support to inform them of your difficulty. McAfee cannot fix what they do not know about.

If none of the above helps and you suspect McAfee is the cause then you may need to remove McAfee using the McAfee Consumer Products Removal tool, and seek different antivirus software.

If you are uncertain that McAfee is the cause, you can test whether something started during Thunderbird or Windows startup is involved:

If the problem is gone then you must dig to find which Windows installed program or Thunderbird addon is causing the problem.

NOTES:

  • The above changes disable various features, but you ARE still protected from viruses by McAfee's other protection features. (quote from McAfee) "you do not need to worry, as [when] the Real Time Scan is turned on [which it is by default] it will scan all the files and attachments and will alert you if there is any infection."
  • Common question: Thunderbird has worked fine for years, with antivirus (AV) product X. So isn't my new problem in a bug Thunderbird? Answer: No, typically not. Antivirus and firewall products are often tightly linked to little details in the software it is monitoring (eg Thunderbird), and which makes them susceptible to breakage or incompatibility from Thunderbird updates. It is the vendor of product X who bears responsibility to fix the problem in such cases.

Installation issue - If thunderbird update fails and you get a 7-Zip Access Denied error when downloading a new version or updating and you are using McAfee VirusScan Enterprise + AntiSpyware Enterprise 8.8, see the advice in this thread.

F-Prot Antivirus

When TLS and SSL protocols are used, e-mail scanning either cannot scan e-mails or may block them entirely. To solve this issue, reconfigure E-mail scanning to listen to the standard unencrypted port (110) or to any unused port Fprot support article here.

Thunderbird 3.0.1 was painfully slow for me on my 2.4 GHz core 2 duo until I took the following steps:

Disabled Global Indexing:

  1. Click “Tools” menu
  2. Click “Options...” menu item
  3. Click “Advanced” tab
    4) Uncheck “Enabled Global Search and Indexer”

Add a special exclusion to Antivirus software that covers the directory in the profile where TB stores its mailbox files. In my case the software was F-Prot so the steps were:

  1. Open F-Prot Interface
  2. Click “Virus Scanners”
  3. Click “Exclusions” under the advanced heading
  4. Click “Folder...”
  5. Type “C:\Users\$Username$\AppData\Roaming\Thunderbird”
  6. Check “Also include subfolders”
  7. Click “OK”

Note that the path to thunderbird's mailbox files varies with each OS, and exception instructions are specific to your virus scanner.

My theory is this: It looks like Thunderbird 3.0.0 and above generates a huge number of file open, seek or read events causing the virus scanner to scan the mailbox files over and over again. This only seems to affect scanners that ignore file extensions and scan all files. This could be proved if someone has some IO monitoring tools and can observe how TB interacts with the mailbox files.

AVAST

Avast blocked and allowed apps

Random examples:

Slowness and errors with nsemail.HTML

The release of Avast 10.3.2223 ( We think it is that version) has resulted in issues with avasts preventing Thunderbird from functioning correctly. The workaround appears to be to create an exception in avast for the file nsemail.html in your computers temp folder. I have to say "appears to be" as Avast have not yet replied to my email. [53], [54], [55], [56], [57], [58] SUMO links [59], [60]

Hangs "Allow anti-virus clients to quarantine individual incoming messages"

As advised by user BigDave67 in th support topic 1094117 Now what seems to have worked for me is this:

  1. I disabled Avast.
  2. Disconnected from the internet.
  3. Started Thunderbird. (It didn't lockup.)
  4. Went to Tools > Options > Security > Anti-Virus
  5. Unchecked "Allow anti-virus clients to quarantine individual incoming messages" Clicked "OK".
  6. Reconnected to the internet.
  7. Clicked on "Get Messages" (It didn't lockup.)
  8. Closed Thunderbird.
  9. Enabled Avast.
  10. Restarted Thunderbird.

Avast 2015 invalid mail server certificate warnings sending/receiving mail

Avast describe the cause thus "The Mail Shield in Avast 2015 uses advanced scanning method for incoming and outgoing e-mails over SSL/TLS secured connections", the reality is they perform a man in the middle hack of your connection using SSL certificates by making themselves a top level certifying authority. As Thunderbird like all quality mail client maintains it's own certificate store the Avast hack does not work. There are instructions on the avast site explaining how to make then a trusted certifying authority.

Anecdotal evidence only, no definitive testing has been done. Love if it if somebody could find the time to do some thorough AVAST and TB testing!

Avast Blocks Sending and Receiving

  • From

My problem was Avast antivirus, once I stopped the service and restarted (virus program ect) thunderbird was once again working perfectly. It's a ssl cache problem within AVAST, not thunderbird. Learned from trying to eliminate avast from list of what may be interfering with thunderbird 3.1.2

AVAST blocks images in HTML email

"So I guess my problem's solved. I just wish I knew what happened. All I did was shut down the mail protection for a day, then restarted it. I didn't change a single setting in Mozilla Mail (didn't even open the options tab). Very strange, but I'm happy now!"

"Yeah, OK, so I uninstalled Avast, restarted the computer, launched TB and voila. Images are now loading when I click "Show Remote Content". "

AVAST blocks getting email

Bullguard

Examples: [61] From Thunderbird Support

  • Problem: Sending Mail Slow
  • Solution: Turn of outgoing mail scanning in BullGuard 15. Using instructions from the BullGard Support Site.

From MozillaZine Forum BullGuard Thread October 7, 2010:

  • Problem: "expanding or collapsing items (subfolders, accounts) in the Folders display often locks up TB completely and the progam goes into Not responding state. OS is Windows Vista Home Premium SP2"
  • Solution: Upgrade to Version 9: "Bullguard asked me to upgrade from Version 8 to the beta version of Verion 9 of their product. This does seem to have resolved the issue. I am now running with their Spamfilter 9.0 enabled and (fingers crossed) everything seems OK."

Microsoft Windows Defender aka "Antimalware Service Executable" (ASE) aka MsMpEng.exe

Create exceptions to exclude the Thunderbird profile directory and executable program. Also, see video

  1. open Windows Security (in Settings) or Defender application
  2. click Virus & threat protection System > Virus & threat protection settings (if you don't find that, look for Microsoft Defender Antivirus Options > scroll down to and click Manage settings )
  3. Exclude the executable - scroll down to Exclusions > click 'Add an exclusion' > File
  4. navigate to and select the Thunderbird.exe file (usually found in C:\Program Files\Mozilla Thunderbird) > click 'Open'
    • If you don't find Thunderbird.exe there do TB menu > Help > Troubleshooting Information > Application Basics section > and copy what is at Application Binary
  5. Exclude all Thunderbird profile directories - click 'Add an exclusion' > Folder
  6. navigate to and select the Thunderbird Profiles folder (all profiles - usually C:\Users\<username>\AppData\Roaming\Thunderbird\Profiles) > click 'Select Folder'
    • If you don't find "Profiles" at the normal location do TB menu > Help > Troubleshooting Information > Application Basics section > scroll down to Profile Folder > click 'Open Folder' > navigate up one level and use the path ending in "Profiles".
    • For more information see Thunderbird profile directory/folder.

User reports of slowness fixed by creating an exclusion for the Thunderbird profile folder. [62], [63],Multiple reports, [64], [65], [66], [67], [68], [69], [70], [71], bug 1441918 (Firefox), bug 1640725, [72]

Norton Security

To quote a Norton support article "The email scanning feature in your Norton product cannot scan emails from the accounts that are configured for SSL. Email scanning can only scan emails from the accounts that are configured for POP3 and SMTP" Source page here This would mean that IMAP mail accounts are also not scanned, regardless of the connection security.

Norton's products have a number of exceptions, but SONAR is the one usually refered to. There are suggestions that you create a exception for Thunderbird to fix slowness. The Norton support forum has instructions here

Norton Security Deluxe is reported to cause issues with the Language reverting to English. [73]

The Global Search & Indexer

In regards to performance issues with antivirus software ... The global search & indexer normally only has impact during the initial indexing process. Performance of this feature should be acceptable after initial indexing is complete. The time needed for initial indexing normally varies from a few hours to a day, depending on the total size of all your messages.

The initial indexing process, performed upon upgrading from a prior version of Thunderbird, may be sped up by disabling on demand antivirus scanning of the Thunderbird mailbox files.

Bogus Windows System Proxies Left by Malware

Malware (usually found only on Windows systems, but could be on any system e.g. Mac or Linux) can install a bogus Internet access proxy. This proxy can slow down Thunderbird and other programs that access the Internet. Symptoms include "couldn't connect to proxy" errors, slow sending and receiving of email, and images not being displayed in HTML emails. Sometimes these can be found after a MalWareBytes scan.

Problem

From a Windows System Proxy blocking HTML images anecdote ...

"FInally! Got the answer from support at AVIRA, which wouldn't update for me. (also, THunderbird wouldn't "connect to proxy").

I went to Internet Explorer -- tools-- internet options-- connections-- LAN settings. There, I unchecked "Use proxy server;..." Voila! it all works. Avira updates, Thunderbird shows images, Java updates. It all works again.

Apparently, when you do a full system scan with MalWareBytes, it puts that on for you to keep the computer from dialing out, but it doesn't uncheck it for you afterwards. How many of you use MalWareBytes? It's a good program, but check the LAN settings after scanning."

Solution: Disable Windows System Proxies

Internet Explorer | tools | internet options | connections | LAN settings and then uncheck "Use proxy server"

Solution for Spamfighter

After every upgrade you have to do the following. There seem to be two solutions from http://community.spamfighter.com/forums/p/237/888.aspx:

  1. In Start Menu | Repair Spamfighter; when repair is finished restart computer and then Spamfighter Toolbar will be back!! OR
  2. more drastic solution:
    1. Close Thunderbird.
    2. Go to Start -> All Programs -> Fighters -> SPAMfighter -> Modify SPAMfighter.
    3. Click Next twice.
    4. Click on the box next to Toolbar for Mozilla Thunderbird and select Entire feature will be installed on local hard drive.
    5. Click Install and let the installation run.
    6. When you next open Thunderbird SPAMfighter will be back again

Helpful Links