Here is imapsync 1.977 on host privremena, a linux system with 12.5/31.3 free GiB of RAM with Perl 5.28.1 and Mail::IMAPClient 3.42 Transfer started at Tue Nov 24 16:39:15 2020 PID is 4858 my PPID is 4857 Log file is LOG_imapsync/2020_11_24_16_39_15_638_info@amkapitalinvest.rs_info@amkapitalinvest.rs.txt ( to change it, use --logfile path ; or use --nolog to turn off logging ) Load is 2.24 1.85 1.76 2/1231 on 2 cores Current directory is /root/imapsync-master Real user id is root (uid 0) Effective user id is root (euid 0) $RCSfile: imapsync,v $ $Revision: 1.977 $ $Date: 2019/12/23 20:18:02 $ Command line used, run by /usr/bin/perl: ./imapsync --addheader --automap --host1 188.93.125.32 --host2 194.146.57.50 --password1 MASKED --password2 MASKED --user1 info@amkapitalinvest.rs --user2 info@amkapitalinvest.rs Temp directory is . ( to change it use --tmpdir dirpath ) Under cgi context Umask set with 0077 (was 0022) REMOTE_ADDR is ::ffff:178.218.170.45 HTTP_REFERER is http://148.251.112.220:8080/ HTTP_USER_AGENT is Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:83.0) Gecko/20100101 Firefox/83.0 SERVER_SOFTWARE is ./webserver SERVER_PORT is 8080 HTTP_COOKIE is imapsync_runs=7; 686c9b6492d74d6d7c41621a12c6956f=la6q3dnkojbe6vjjq7boesovf2 kill -QUIT 4858 # special behavior: call to sub catch_exit kill -TERM 4858 # special behavior: call to sub catch_exit kill -INT 4858 # special behavior: call to sub catch_reconnect kill -HUP 4858 # special behavior: call to sub catch_print kill -USR1 4858 # special behavior: call to sub toggle_sleep File ./imapsync_188.93.125.32_info@amkapitalinvest.rs_194.146.57.50_info@amkapitalinvest.rs.pid does not exist Error reading file ./imapsync_188.93.125.32_info@amkapitalinvest.rs_194.146.57.50_info@amkapitalinvest.rs.pid : No such file or directory PID file is ./imapsync_188.93.125.32_info@amkapitalinvest.rs_194.146.57.50_info@amkapitalinvest.rs.pid ( to change it, use --pidfile filepath ; to avoid it use --pidfile "" ) Writing my PID 4858 in ./imapsync_188.93.125.32_info@amkapitalinvest.rs_194.146.57.50_info@amkapitalinvest.rs.pid Writing also my logfile name in ./imapsync_188.93.125.32_info@amkapitalinvest.rs_194.146.57.50_info@amkapitalinvest.rs.pid : LOG_imapsync/2020_11_24_16_39_15_638_info@amkapitalinvest.rs_info@amkapitalinvest.rs.txt Info: will resync flags for already transferred messages. Use --noresyncflags to not resync flags. Host1: probing ssl on port 993 ( use --nosslcheck to avoid this ssl probe ) Host1: sslcheck did not detected open ssl port 993. Will use standard 143 port. Host2: probing ssl on port 993 ( use --nosslcheck to avoid this ssl probe ) Host2: sslcheck detected open ssl port 993 so turning ssl on (use --nossl2 --notls2 to turn off SSL and TLS wizardry) SSL debug mode level is --debugssl 1 (can be set from 0 meaning no debug to 4 meaning max debug) Host2: SSL default mode is like --sslargs2 "SSL_verify_mode=0", meaning for host2 SSL_VERIFY_NONE, ie, do not check the certificate server. Host2: Use --sslargs2 SSL_verify_mode=1 to have SSL_VERIFY_PEER, ie, check the certificate server of host2 Info: turned ON syncinternaldates, will set the internal dates (arrival dates) on host2 same as host1. Host1: will try to use LOGIN authentication on host1 Host2: will try to use LOGIN authentication on host2 Host1: imap connection timeout is 120 seconds Host2: imap connection timeout is 120 seconds Host1: IMAP server [188.93.125.32] port [143] user [info@amkapitalinvest.rs] Host2: IMAP server [194.146.57.50] port [993] user [info@amkapitalinvest.rs] Host1: connecting and login on host1 [188.93.125.32] port [143] with user [info@amkapitalinvest.rs] Host1 IP address: 188.93.125.32 Host1 banner: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN] Dovecot ready. Host1 capability before authentication: IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN AUTH Host1: 188.93.125.32 says it has CAPABILITY for AUTHENTICATE LOGIN Host1: success login on [188.93.125.32] with user [info@amkapitalinvest.rs] auth [LOGIN] Host2: connecting and login on host2 [194.146.57.50] port [993] with user [info@amkapitalinvest.rs] Host2 IP address: 194.146.57.50 Host2 banner: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5] Dovecot (Ubuntu) ready. Host2 capability before authentication: IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5 AUTH Host2: 194.146.57.50 says it has CAPABILITY for AUTHENTICATE LOGIN Host2: success login on [194.146.57.50] with user [info@amkapitalinvest.rs] auth [LOGIN] Host1: state Authenticated Host2: state Authenticated Host1 capability once authenticated: IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE BINARY MOVE QUOTA THREAD I18NLEVEL CONTEXT Host2 capability once authenticated: IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE THREAD I18NLEVEL CONTEXT Host1: found ID capability. Sending/receiving ID, presented in raw IMAP for now. In order to avoid sending/receiving ID, use option --noid Sending: 4 ID ("name" "imapsync" "version" "1.977" "os" "linux" "vendor" "Gilles LAMIRAL" "support-url" "https://imapsync.lamiral.info/" "date" "23-Dec-2019 20:18:02 +0000" "side" "host1") Sent 181 bytes Read: * ID ("name" "Dovecot") 4 OK ID completed. Host2: found ID capability. Sending/receiving ID, presented in raw IMAP for now. In order to avoid sending/receiving ID, use option --noid Sending: 4 ID ("name" "imapsync" "version" "1.977" "os" "linux" "vendor" "Gilles LAMIRAL" "support-url" "https://imapsync.lamiral.info/" "date" "23-Dec-2019 20:18:02 +0000" "side" "host2") Sent 181 bytes Read: * ID ("name" "Dovecot") 4 OK ID completed (0.001 + 0.000 secs). Host1: found 9 folders. Host2: found 7 folders. Host1: guessing separator from folder listing: [.] Host1: separator given by NAMESPACE: [.] Host2: guessing separator from folder listing: [.] Host2: separator given by NAMESPACE: [.] Host1: guessing prefix from folder listing: [] Host1: prefix given by NAMESPACE: [] Host2: guessing prefix from folder listing: [] Host2: prefix given by NAMESPACE: [] Host1: separator and prefix: [.][] Host2: separator and prefix: [.][] Including all folders found by default. Use --subscribed or --folder or --folderrec or --include to select specific folders. Use --exclude to unselect specific folders. Host1: Checking wanted folders exist. Use --nocheckfoldersexist to avoid this check (shared of public namespace targeted). Host1: Checking wanted folders are selectable. Use --nocheckselectable to avoid this check. Turned on automapping folders ( use --noautomap to turn off automapping ) Host2: special Sent Messages = \Sent Host2: special Sent = \Sent already assigned to Sent Messages Host2: special Drafts = \Drafts Host2: special Trash = \Trash Host1: Sent Messages not \Sent because set to Sent Host1: Spam not \Junk because set to Junk Host1: Trash not \Trash because set to Deleted Messages Host2: Sent Messages not \Sent because set to Sent ++++ Listing folders All foldernames are presented between brackets like [X] where X is the foldername. When a foldername contains non-ASCII characters it is presented in the form [X] = [Y] where X is the imap foldername you have to use in command line options and Y is the utf8 output just printed for convenience, to recognize it. Host1: folders list (first the raw imap format then the [X] = [Y]): * LIST (\HasNoChildren) "." Spam * LIST (\HasNoChildren) "." Trash * LIST (\HasNoChildren) "." "Deleted Messages" * LIST (\HasNoChildren) "." Drafts * LIST (\HasChildren) "." Sent * LIST (\HasNoChildren) "." "Sent.Deleted Messages" * LIST (\HasNoChildren) "." "Sent Messages" * LIST (\HasNoChildren) "." Junk * LIST (\HasNoChildren) "." INBOX 19 OK List completed. [Deleted Messages] [Drafts] [INBOX] [Junk] [Sent] [Sent Messages] [Sent.Deleted Messages] [Spam] [Trash] Host2: folders list (first the raw imap format then the [X] = [Y]): * LIST (\HasNoChildren \Sent) "." "Sent Messages" * LIST (\HasChildren \Sent) "." Sent * LIST (\HasNoChildren) "." "Sent.Deleted Messages" * LIST (\HasNoChildren \Drafts) "." Drafts * LIST (\HasNoChildren) "." Spam * LIST (\HasNoChildren \Trash) "." Trash * LIST (\HasNoChildren) "." INBOX 10 OK List completed (0.001 + 0.000 secs). [Drafts] [INBOX] [Sent] [Sent Messages] [Sent.Deleted Messages] [Spam] [Trash] Folders mapping from --automap feature (use --f1f2 to override any mapping): [Deleted Messages] -> [Trash] [Sent Messages] -> [Sent Messages] [Trash] -> [Trash] [Junk] -> [Spam] [Drafts] -> [Drafts] [Sent] -> [Sent Messages] [Spam] -> [Spam] Host1: will not syncing empty folders on host1. Use --noskipemptyfolders to create them anyway on host2 Folders sizes before the synchronization. You can remove foldersizes listings by using "--nofoldersizes" and "--nofoldersizesatend" but then you will also lose the ETA (Estimation Time of Arrival) given after each message copy. Host1 folder 1/9 [Deleted Messages] Size: 0 Messages: 0 Biggest: 0 Host2 folder 1/9 [Trash] Size: 1483540 Messages: 4 Biggest: 1475498 Host2-Host1 1483540 4 1475498 Host1 folder 2/9 [Drafts] Size: 42375 Messages: 1 Biggest: 42375 Host2 folder 2/9 [Drafts] Size: 42375 Messages: 1 Biggest: 42375 Host2-Host1 0 0 0 Host1 folder 3/9 [INBOX] Size: 137789686 Messages: 176 Biggest: 19602281 Host2 folder 3/9 [INBOX] Size: 137789740 Messages: 176 Biggest: 19602281 Host2-Host1 54 0 0 Host1 folder 4/9 [Junk] Size: 0 Messages: 0 Biggest: 0 Host2 folder 4/9 [Spam] Size: 14581 Messages: 1 Biggest: 14581 Host2-Host1 14581 1 14581 Host1 folder 5/9 [Sent] Size: 23945088 Messages: 30 Biggest: 6003077 Host2 folder 5/9 [Sent Messages] Size: 70181906 Messages: 38 Biggest: 19869600 Host2-Host1 46236818 8 13866523 Host1 folder 6/9 [Sent Messages] Size: 46236818 Messages: 8 Biggest: 19869600 Host2 folder 6/9 [Sent Messages] Size: 70181906 Messages: 38 Biggest: 19869600 Host2-Host1 23945088 30 0 Host1 folder 7/9 [Sent.Deleted Messages] Size: 295260 Messages: 1 Biggest: 295260 Host2 folder 7/9 [Sent.Deleted Messages] Size: 295260 Messages: 1 Biggest: 295260 Host2-Host1 0 0 0 Host1 folder 8/9 [Spam] Size: 14581 Messages: 1 Biggest: 14581 Host2 folder 8/9 [Spam] Size: 14581 Messages: 1 Biggest: 14581 Host2-Host1 0 0 0 Host1 folder 9/9 [Trash] Size: 1483540 Messages: 4 Biggest: 1475498 Host2 folder 9/9 [Trash] Size: 1483540 Messages: 4 Biggest: 1475498 Host2-Host1 0 0 0 Host1 Nb folders: 9 folders Host2 Nb folders: 6 folders Host1 Nb messages: 221 messages Host2 Nb messages: 221 messages Host1 Total size: 209807348 bytes (200.088 MiB) Host2 Total size: 209807402 bytes (200.088 MiB) Host1 Biggest message: 19869600 bytes (18.949 MiB) Host2 Biggest message: 19869600 bytes (18.949 MiB) Time spent on sizing: 2.5 seconds ++++ Looping on each one of 9 folders to sync ETA: Tue Nov 24 16:39:18 2020 0 s 221/221 msgs left Folder 1/9 [Deleted Messages] -> [Trash] Host1: folder [Deleted Messages] has 0 messages in total (mentioned by SELECT) Host1: skipping empty host1 folder [Deleted Messages] ETA: Tue Nov 24 16:39:24 2020 6 s 221/221 msgs left Folder 2/9 [Drafts] -> [Drafts] Host1: folder [Drafts] has 1 messages in total (mentioned by SELECT) Host2: folder [Drafts] has 1 messages in total (mentioned by SELECT) Host2: folder [Drafts] permanentflags: Host1: folder [Drafts] considering 1 messages Host2: folder [Drafts] considering 1 messages Host1: folder [Drafts] selected 1 messages, duplicates 0 Host2: folder [Drafts] selected 1 messages, duplicates 0 ETA: Tue Nov 24 16:40:24 2020 66 s 220/221 msgs left Folder 3/9 [INBOX] -> [INBOX] Host1: folder [INBOX] has 176 messages in total (mentioned by SELECT) Host2: folder [INBOX] has 176 messages in total (mentioned by SELECT) Host2: folder [INBOX] permanentflags: Host1: folder [INBOX] considering 176 messages Host2: folder [INBOX] considering 176 messages Host1: folder [INBOX] selected 176 messages, duplicates 0 Host2: folder [INBOX] selected 176 messages, duplicates 0 ETA: Tue Nov 24 16:39:51 2020 33 s 44/221 msgs left Folder 4/9 [Junk] -> [Spam] Host1: folder [Junk] has 0 messages in total (mentioned by SELECT) Host1: skipping empty host1 folder [Junk] ETA: Tue Nov 24 16:39:52 2020 34 s 44/221 msgs left Folder 5/9 [Sent] -> [Sent Messages] Host1: folder [Sent] has 30 messages in total (mentioned by SELECT) Host2: folder [Sent Messages] has 38 messages in total (mentioned by SELECT) Host2: folder [Sent Messages] permanentflags: Host1: folder [Sent] considering 30 messages Host2: folder [Sent Messages] considering 38 messages Host1: folder [Sent] selected 30 messages, duplicates 0 Host2: folder [Sent Messages] selected 38 messages, duplicates 0 ETA: Tue Nov 24 16:39:34 2020 15 s 14/221 msgs left Folder 6/9 [Sent Messages] -> [Sent Messages] Host1: folder [Sent Messages] has 8 messages in total (mentioned by SELECT) Host2: folder [Sent Messages] has 38 messages in total (mentioned by SELECT) Host2: folder [Sent Messages] permanentflags: Host1: folder [Sent Messages] considering 8 messages Host2: folder [Sent Messages] considering 38 messages Host1: folder [Sent Messages] selected 8 messages, duplicates 0 Host2: folder [Sent Messages] selected 38 messages, duplicates 0 ETA: Tue Nov 24 16:39:28 2020 9 s 6/221 msgs left Folder 7/9 [Sent.Deleted Messages] -> [Sent.Deleted Messages] Host1: folder [Sent.Deleted Messages] has 1 messages in total (mentioned by SELECT) Host2: folder [Sent.Deleted Messages] has 1 messages in total (mentioned by SELECT) Host2: folder [Sent.Deleted Messages] permanentflags: Host1: folder [Sent.Deleted Messages] considering 1 messages Host2: folder [Sent.Deleted Messages] considering 1 messages Host1: folder [Sent.Deleted Messages] selected 1 messages, duplicates 0 Host2: folder [Sent.Deleted Messages] selected 1 messages, duplicates 0 ETA: Tue Nov 24 16:39:28 2020 8 s 5/221 msgs left Folder 8/9 [Spam] -> [Spam] Host1: folder [Spam] has 1 messages in total (mentioned by SELECT) Host2: folder [Spam] has 1 messages in total (mentioned by SELECT) Host2: folder [Spam] permanentflags: Host1: folder [Spam] considering 1 messages Host2: folder [Spam] considering 1 messages Host1: folder [Spam] selected 1 messages, duplicates 0 Host2: folder [Spam] selected 1 messages, duplicates 0 ETA: Tue Nov 24 16:39:28 2020 8 s 4/221 msgs left Folder 9/9 [Trash] -> [Trash] Host1: folder [Trash] has 4 messages in total (mentioned by SELECT) Host2: folder [Trash] has 4 messages in total (mentioned by SELECT) Host2: folder [Trash] permanentflags: Host1: folder [Trash] considering 4 messages Host2: folder [Trash] considering 4 messages Host1: folder [Trash] selected 4 messages, duplicates 0 Host2: folder [Trash] selected 4 messages, duplicates 0 ETA: Tue Nov 24 16:39:20 2020 0 s 0/221 msgs left ++++ End looping on each folder Folders sizes after the synchronization. You can remove this foldersizes listing by using "--nofoldersizesatend" Host1 folder 1/9 [Deleted Messages] Size: 0 Messages: 0 Biggest: 0 Host2 folder 1/9 [Trash] Size: 1483540 Messages: 4 Biggest: 1475498 Host2-Host1 1483540 4 1475498 Host1 folder 2/9 [Drafts] Size: 42375 Messages: 1 Biggest: 42375 Host2 folder 2/9 [Drafts] Size: 42375 Messages: 1 Biggest: 42375 Host2-Host1 0 0 0 Host1 folder 3/9 [INBOX] Size: 137789686 Messages: 176 Biggest: 19602281 Host2 folder 3/9 [INBOX] Size: 137789740 Messages: 176 Biggest: 19602281 Host2-Host1 54 0 0 Host1 folder 4/9 [Junk] Size: 0 Messages: 0 Biggest: 0 Host2 folder 4/9 [Spam] Size: 14581 Messages: 1 Biggest: 14581 Host2-Host1 14581 1 14581 Host1 folder 5/9 [Sent] Size: 23945088 Messages: 30 Biggest: 6003077 Host2 folder 5/9 [Sent Messages] Size: 70181906 Messages: 38 Biggest: 19869600 Host2-Host1 46236818 8 13866523 Host1 folder 6/9 [Sent Messages] Size: 46236818 Messages: 8 Biggest: 19869600 Host2 folder 6/9 [Sent Messages] Size: 70181906 Messages: 38 Biggest: 19869600 Host2-Host1 23945088 30 0 Host1 folder 7/9 [Sent.Deleted Messages] Size: 295260 Messages: 1 Biggest: 295260 Host2 folder 7/9 [Sent.Deleted Messages] Size: 295260 Messages: 1 Biggest: 295260 Host2-Host1 0 0 0 Host1 folder 8/9 [Spam] Size: 14581 Messages: 1 Biggest: 14581 Host2 folder 8/9 [Spam] Size: 14581 Messages: 1 Biggest: 14581 Host2-Host1 0 0 0 Host1 folder 9/9 [Trash] Size: 1483540 Messages: 4 Biggest: 1475498 Host2 folder 9/9 [Trash] Size: 1483540 Messages: 4 Biggest: 1475498 Host2-Host1 0 0 0 Host1 Nb folders: 9 folders Host2 Nb folders: 6 folders Host1 Nb messages: 221 messages Host2 Nb messages: 221 messages Host1 Total size: 209807348 bytes (200.088 MiB) Host2 Total size: 209807402 bytes (200.088 MiB) Host1 Biggest message: 19869600 bytes (18.949 MiB) Host2 Biggest message: 19869600 bytes (18.949 MiB) Time spent on sizing: 1.5 seconds ++++ Statistics Transfer started on : Tue Nov 24 16:39:15 2020 Transfer ended on : Tue Nov 24 16:39:21 2020 Transfer time : 6.3 sec Folders synced : 9/9 synced Messages transferred : 0 Messages skipped : 221 Messages found duplicate on host1 : 0 Messages found duplicate on host2 : 0 Messages found crossduplicate on host2 : 0 Messages void (noheader) on host1 : 0 Messages void (noheader) on host2 : 0 Messages found in host1 not in host2 : 0 messages Messages found in host2 not in host1 : 0 messages Messages deleted on host1 : 0 Messages deleted on host2 : 0 Total bytes transferred : 0 (0.000 KiB) Total bytes skipped : 209807348 (200.088 MiB) Message rate : 0.0 messages/s Average bandwidth rate : 0.0 KiB/s Reconnections to host1 : 0 Reconnections to host2 : 0 Memory consumption at the end : 163.8 MiB (started with 159.9 MiB) Load end is : 2.29 1.87 1.77 2/1236 on 2 cores Biggest message : 0 bytes (0.000 KiB) Memory/biggest message ratio : NA Start difference host2 - host1 : 0 messages, 54 bytes (0.053 KiB) Final difference host2 - host1 : 0 messages, 54 bytes (0.053 KiB) The sync looks good, all 221 identified messages in host1 are on host2. There is no unidentified message The sync is strict, all 221 identified messages in host2 are on host1. Detected 0 errors Check if a new imapsync release is available by adding --releasecheck Homepage: https://imapsync.lamiral.info/ Exiting with return value 0 (EX_OK: successful termination) 0/20 nb_errors/max_errors Log file is LOG_imapsync/2020_11_24_16_39_15_638_info@amkapitalinvest.rs_info@amkapitalinvest.rs.txt ( to change it, use --logfile filepath ; or use --nolog to turn off logging )