IMAP diagnostics

Connection reset by peer: the server closed the session silently

How it looks in the log
Error reading from socket: Connection reset by peer

The provider decided the request rate was too high and tore down the session without explanation. Classic throttling — the error describes the symptom, not the cause.

Causes, most likely first

How to fix it

  1. Just run the transfer again — the remainder is copied and nothing duplicates.
  2. If it keeps happening, pause for a few hours, especially with Gmail.
  3. Reduce speed and thread count.
  4. Exclude folders with very large attachments and move them in a separate pass.

Test the connection in MoveMailbox

FAQ

Common questions

Can messages be lost when the connection drops?

No. The transfer compares what already exists at the destination and copies only the remainder on the next run. An interrupted migration never means lost mail.

Other errors

Find out how big your mailbox is. It costs nothing.

Connect two servers, look at the size and decide. Or take the client and keep everything on your side.

Code on GitHub · built on imapsync · no sign-up