imapsync / imapsync

Imapsync is an IMAP transfers tool. The purpose of imapsync is to migrate IMAP accounts or to backup IMAP accounts. IMAP is one of the three current standard protocols to access mailboxes, the two others are POP3 and HTTP with webmails, webmails are often tied to an IMAP server. Upstream website is
http://imapsync.lamiral.info
Other
3.41k stars 473 forks source link

Having issue syncing an email server #467

Open Wodel opened 4 months ago

Wodel commented 4 months ago

Hi,

I am in the middle of server migration and I am dealing with a shi.... mail server. The problem I am facing is at some point while syncing accounts, the source server closes the connection (some kind of a protection mechanism), so I have to redo and redo again. Is there a way to work-around this issue?

DEBUG: ...erl5/IO/Socket.pm:48: local error: IO::Socket::IP configuration failed
DEBUG: ...erl5/IO/Socket.pm:48: local error: IO::Socket::IP configuration failed
- msg Envoy&AOk-s/315 {0} S[13734930] F[\Seen] I[12-Jun-2022 13:26:05 +0100] could not be fetched: socket closed while reading data from server; Unable to connect to **IP**: socket closed while reading data from server; Unable to connect to **IP**: Unable to connect to **IP**: socket closed while reading data from server; Unable to connect to **IP**: Unable to connect to **IP**: Unable to connect to **IP**: socket closed while reading data from server; Unable to connect to **IP**: Unable to connect to **IP**: Unable to connect to **IP**: Unable to connect to **IP**: socket closed while reading data from server
- msg Envoy&AOk-s/315 skipped.
DEBUG: ...erl5/IO/Socket.pm:48: local error: IO::Socket::IP configuration failed
DEBUG: ...erl5/IO/Socket.pm:48: local error: IO::Socket::IP configuration failed
Trying command when NOT connected! at /usr/share/perl5/vendor_perl/Mail/IMAPClient.pm line 123.
        Mail::IMAPClient::LastError(Mail::IMAPClient=HASH(0x560853c43ff8), "NO not connected") called at /usr/share/perl5/vendor_perl/Mail/IMAPClient.pm line 1558
        Mail::IMAPClient::_send_line(Mail::IMAPClient=HASH(0x560853c43ff8), "103 NOOP", 0) called at /usr/share/perl5/vendor_perl/Mail/IMAPClient.pm line 1334
        Mail::IMAPClient::_imap_command_do(Mail::IMAPClient=HASH(0x560853c43ff8), "NOOP") called at /usr/share/perl5/vendor_perl/Mail/IMAPClient.pm line 1238
        Mail::IMAPClient::_imap_command(Mail::IMAPClient=HASH(0x560853c43ff8), "NOOP") called at /usr/share/perl5/vendor_perl/Mail/IMAPClient.pm line 604
        Mail::IMAPClient::noop(Mail::IMAPClient=HASH(0x560853c43ff8)) called at /usr/bin/imapsync line 7673
        main::reconnect_if_needed(Mail::IMAPClient=HASH(0x560853c43ff8)) called at /usr/bin/imapsync line 7618
        main::reconnect_12_if_needed(HASH(0x560852e20088)) called at /usr/bin/imapsync line 2860
        main::single_sync(HASH(0x560852e20088), HASH(0x560850fa24d8), HASH(0x560852e88bf0)) called at /usr/bin/imapsync line 1367
Trying command when NOT connected! LastError was: NO not connected at /usr/share/perl5/vendor_perl/Mail/IMAPClient.pm line 123.
        Mail::IMAPClient::LastError(Mail::IMAPClient=HASH(0x560853c43ff8), "Error sending '103 NOOP': NO not connected") called at /usr/share/perl5/vendor_perl/Mail/IMAPClient.pm line 1335

Regards.

gilleslamiral commented 4 months ago

What is the server?

You can slow down imapsync but not knowing what causes the disconnections won't get too far.

https://imapsync.lamiral.info/README ...

     --maxmessagespersecond flo : limits the average number of messages 
                                  transferred per second.

     --maxbytespersecond int : limits the average transfer rate per second.

Have a try.

Wodel commented 4 months ago

The server is a CPanel with dovecot, it's an external mail server. I have no control over it.

Thanks for the help, I will and report back.