Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Mail producing lots of network traffic in background

Hi,

I've been using Mail for some time now to read emails from my uni account (IMAP over SSL) as well as GMail (POP). Just recently, I've been noticing a lot of traffic on my cable modem when I'm not doing anything. I ran a packet sniffer to see what was causing the traffic and discovered that most of it is communication between my laptop and my uni email server (on port 993, which is the IMAP port when SSL is configured). Any idea what could be going on? I have a lot of emails in my mailbox (~2000), but I'm pretty sure Mail has already downloaded and indexed them all.

Does anyone know what Mail is doing and how to stop it? It seems to be using an awful lot of bandwidth.

EDIT: Looking at the Activity Viewer it says "Updating cache directory. Received 1 of 1 headers." It seems to be paused in this task -- progress bar is visible but not animating.

Cheers,

-- Neil

MacBook 2GHz (Black) Mac OS X (10.4.8) 1GB RAM, 120GB disk.

Posted on Jan 16, 2007 8:02 AM

Reply
Question marked as Best reply

Posted on Jan 16, 2007 9:52 AM

Hi Neil.

You probably have Preferences > Accounts > Advanced > Automatically synchronize changed mailboxes ON. If that‘s the case, turn it OFF.
7 replies

Jan 16, 2007 11:10 AM in response to David Gimeno Gost

You probably have Preferences > Accounts >
Advanced > Automatically synchronize changed
mailboxes
ON. If that‘s the case, turn it OFF.


That setting is already turned off, so that's not the solution, unfortunately. Thanks for the suggestion, though.

For now, I've found that I can kill the task in Activity Viewer when I notice the network traffic, but I'd rather know what was causing this in the first place.

MacBook 2GHz (Black) Mac OS X (10.4.8) 1GB RAM, 120GB disk.

Jan 16, 2007 11:18 AM in response to Neil Madden

In that case, there is probably something amiss somewhere.

What’s the time interval chosen in Preferences > General > Check for New Mail? If it’s set to Every minute, try changing it to Every 5 minutes.

Try rebuilding the affected mailbox (if you can determine which one it is), i.e. select it in Mail and do Mailbox > Rebuild -- it may take a while for Mail to complete.

Do you have any Mail plug-ins or system utilities that could interfere with Mail? In the Finder, go to each of the following folders (if they exist). What do you see there?

/Library/InputManagers/
~/Library/InputManagers/
/Library/Mail/Bundles/
~/Library/Mail/Bundles/

Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder. You can easily locate any of the folders referred to in this post by copying the folder path here, doing Go > Go to Folder in the Finder, and pasting the folder path there.

Jan 16, 2007 11:38 AM in response to David Gimeno Gost

Thanks again for the reply.

What’s the time interval chosen in Preferences >
General > Check for New Mail
? If it’s set to
Every minute, try changing it to Every 5
minutes
.


15 minutes.

Try rebuilding the affected mailbox (if you can
determine which one it is), i.e. select it in Mail
and do Mailbox > Rebuild -- it may take a
while for Mail to complete.


I tried this before posting here. No luck, I'm afraid. I could try manually deleting the mailbox cache files on the server (I have SSH access), but I suspect this is what rebuild does anyway.

I'm not sure which mailbox is affected. The packet sniffer wasn't much help as the communication was over SSL/TLS and thus encrypted. I'd rather not turn off SSL unless necessary.

Do you have any Mail plug-ins or system utilities
that could interfere with Mail? In the Finder, go to
each of the following folders (if they exist). What
do you see there?

/Library/InputManagers/
~/Library/InputManagers/
/Library/Mail/Bundles/
~/Library/Mail/Bundles/


None of these directories exist on my system. I haven't installed any Mail plugins.

-- Neil

MacBook 2GHz (Black) Mac OS X (10.4.8) 1GB RAM, 120GB disk.

Jan 16, 2007 12:12 PM in response to Neil Madden

Verify/repair the startup disk (not just permissions), as described here:

The Repair functions of Disk Utility: what's it all about?

Go to Apple Menu > System Preferences > Network, choose Network Port Configurations from the Show popup menu, and make sure that the configuration used to connect to Internet appears at the top of the list.

Finally, try this:

1. Quit Mail if it’s running.

2. In the Finder, go to ~/Library/Mail/. Make a backup copy of this folder, just in case something goes wrong, e.g. by dragging it to the Desktop while holding the Option (Alt) key down. This is where all your mail is stored.

3. Locate Envelope Index and move it to the Trash. If you see an Envelope Index-journal file there, delete it as well.

4. Move any “IMAP-”, “Mac-”, or “Exchange-” account folders to the Trash. Note that you can do this with IMAP-type accounts because they store mail on the server and Mail can easily re-create them. DON’T trash any “POP-” account folders, as that would cause all mail stored there to be lost.

5. Open Mail. It will tell you that your mail needs to be “imported”. Click Continue and Mail will proceed to re-create Envelope Index -- Mail says it’s “importing”, but it just re-creates the index if the mailboxes are already in Mail 2.x format.

6. As a side effect of having removed the IMAP account folders, those accounts may be in an “offline” state now. Do Mailbox > Go Online to bring them back online.

Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder, i.e. ~/Library is the Library folder within the user’s home folder.

Jan 17, 2007 9:58 AM in response to David Gimeno Gost

Verify/repair the startup disk (not just
permissions), as described here:

Th
e Repair functions of Disk Utility: what's it all
about?


All clear, thankfully.

Go to Apple Menu > System Preferences >
Network
, choose Network Port
Configurations
from the Show popup menu,
and make sure that the configuration used to connect
to Internet appears at the top of the list.


I've not had the problem again since trying this (moved Airport above Bluetooth and Ethernet). I'm not sure if this was responsible, or just coincidence, but Mail seems happy now.

Thanks for your help.

Mail producing lots of network traffic in background

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.