Imapsync does not start synchronization

NethServer Version: NS8
Module: imapsync on Node15

User mailbox (ken) 19GB
After adding several imapsync tasks, other users’ mailboxes stopped synchronizing. User ken’s mailbox downloaded only up to 8GB. I deleted the user ken’s task and added it again, but there was no change. Synchronization does not start.

api-cli run module/imapsync2/start-task --data …

2025-04-30T12:49:01+03:00 [15:imapsync2:agent@imapsync2] task/module/imapsync2/f4fe21c3-637f-45a5-9582-f7bf27283c5a: stop-task/50stop-service is starting
2025-04-30T12:49:02+03:00 [15:imapsync2:agent@imapsync2] run-imapsync stop ken_whzjvk
2025-04-30T12:49:03+03:00 [15:imapsync2:agent@imapsync2] task/module/imapsync2/f4fe21c3-637f-45a5-9582-f7bf27283c5a: action "stop-task" status is "completed" (0) at step 50stop-service
2025-04-30T12:49:03+03:00 [15:imapsync2:agent@imapsync2] task/module/imapsync2/ab9e4446-d7b1-4e72-8692-f75e3fa5274e: list-tasks/20read is starting
2025-04-30T12:49:11+03:00 [15:imapsync2:imapsync] task ken_whzjvk: imapsync error: 143
2025-04-30T12:49:11+03:00 [15:imapsync2:imapsync] task ken_whzjvk: tx=1, msg=Exiting with return value 6 (EXIT_BY_SIGNAL) 1/50 nb_errors/max_errors PID 1684652
2025-04-30T12:49:29+03:00 [15:imapsync2:agent@imapsync2] task/module/imapsync2/ab9e4446-d7b1-4e72-8692-f75e3fa5274e: action "list-tasks" status is "completed" (0) at step validate-output.json

I started the task from the web

2025-04-30T12:55:04+03:00 [15:imapsync2:agent@imapsync2] task/module/imapsync2/8629ace9-d3a8-4e36-8cac-ec10d2ab5560: start-task/50start-service is starting
2025-04-30T12:55:05+03:00 [15:imapsync2:agent@imapsync2] run-imapsync start ken_whzjvk
2025-04-30T12:55:05+03:00 [15:imapsync2:imapsync] cat: can't open '/etc/imapsync/ken_whzjvk.timestamp': No such file or directory
2025-04-30T12:55:05+03:00 [15:imapsync2:agent@imapsync2] 77fe42dd1be77bed7b7c15495fb0b4f884774db8c9b67f4c5a3b2f5a4cc00e7d
2025-04-30T12:55:05+03:00 [15:imapsync2:agent@imapsync2] task/module/imapsync2/8629ace9-d3a8-4e36-8cac-ec10d2ab5560: action "start-task" status is "completed" (0) at step 50start-service

Could it be that the disk is full?

It seems like there is still some free space.

Leader Node1 free 300GB

Node15 (mail2, imapsync2) free 1.4TB

1 Like

OK, so let’s check the imapsync logs:

Enter imapsync1 instance:

runagent -m imapsync1

Check logs for Ken:

cat imapsync/ken_whzjvk.log

There should be log files for all users if you want to check other users…

runagent: [INFO] starting bash -l
runagent: [INFO] working directory: /home/imapsync2/.config/state
[imapsync2@mail state]$ cat imapsync/ken_whzjvk.log
Here is imapsync 2.290 on host c46be23568f8, a linux system with 3.0/28.4 free GiB of RAM, 0.59% used by processes.
with Perl 5.40.1 and Mail::IMAPClient 3.43
Transfer started at Wednesday 30 April 2025-04-30 11:55:01 +0000 UTC
PID is 1685512 my PPID is 1685511
No log file because of option --nolog
Load is 0.22 0.20 0.23 1/531 on 6 cores
Real user id is root (uid 0)
Effective user id is root (euid 0)
$RCSfile: imapsync,v $ $Revision: 2.290 $ $Date: 2024/08/20 10:37:23 $
Command line used, run by perl:
/usr/bin/imapsync --pidfile /etc/imapsync/ken_whzjvk.pid --nolog --noauthmd5 --noreleasecheck --allowsizemismatch --skipsize --nofoldersizes --maxage=1     --fastio1 --fastio2 --buffersize 8192000 --host1 mx.mx.domain.com --user1 ken@mx.domain.com --passfile1 /etc/imapsync/ken_whzjvk.pwd --port1 143   --host2 10.5.4.15 --user2 ken*vmail --port2 143 --tls2 --passfile2 /etc/imapsync/vmail.pwd --exclude ^Public$|^Shared$
Current directory is /root
Temp directory is /root/tmp ( to change it use --tmpdir dirpath )
Creating temp directory /root/tmp
kill -QUIT 1685512 # special behavior: call to sub catch_exit
kill -TERM 1685512 # special behavior: call to sub catch_exit
kill -INT 1685512 # special behavior: call to sub catch_reconnect
kill -HUP 1685512 # special behavior: call to sub catch_print
kill -USR1 1685512 # special behavior: call to sub toggle_sleep
Logging is off. To turn on logging, use --log
File /etc/imapsync/ken_whzjvk.pid does not exist
PID file is /etc/imapsync/ken_whzjvk.pid ( to change it, use --pidfile filepath ; to avoid it use --pidfile "" )
Writing my PID 1685512 in /etc/imapsync/ken_whzjvk.pid
Modules version list ( use --no-modulesversion to turn off printing this Perl modules list ):
Authen::NTLM         1.09
CGI                  4.67
Compress::Zlib       2.212
Crypt::OpenSSL::RSA  0.33
Digest::HMAC_MD5     1.05
Digest::HMAC_SHA1    1.05
Digest::MD5          2.59
Digest::SHA          6.04
Encode               3.21
Encode::IMAPUTF7     1.05
File::Copy::Recursive 0.45
File::Spec           3.91
Getopt::Long         2.57
HTML::Entities       3.83
IO::Socket           1.55
IO::Socket::INET     1.55
IO::Socket::INET6    2.73
IO::Socket::IP       0.42
IO::Socket::SSL      2.089
IO::Tee              0.65
JSON                 4.10
JSON::WebToken       0.10
LWP                  6.77
MIME::Base64         3.16
Mail::IMAPClient     3.43
Net::Ping            2.76
Net::SSLeay          1.94
Term::ReadKey        2.38
Test::MockObject     Not installed
Time::HiRes          1.9777
Unicode::String      2.10

Info: will resync flags for already transferred messages. Use --noresyncflags to not resync flags.
Host1: probing ssl on port 143 ( use --nosslcheck to avoid this ssl probe )
Probing imap ssl on host mx.domain.com port 143, got failure.
Host1: sslcheck did not detected open ssl port 143. Will use standard connection.
SSL debug mode level is --debugssl 1 (can be set from 0 meaning no debug to 4 meaning max debug)
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 connection keepalive is on on host1. Use --nokeepalive1 to disable it.
Host2: imap connection keepalive is on on host2. Use --nokeepalive2 to disable it.
Host1: IMAP server [mx.domain.com] port [143] user [ken@domain.com]
Host2: IMAP server [10.5.4.15] port [143] user [ken*vmail]
Host1: connecting and login on host1 [mx.domain.com] port [143] with user [ken@domain.com]
Host1 IP address: 195.210.171.242 Local IP address: 192.168.0.17
Host1 banner: * OK mx.domain.com IMAP4rev1 MDaemon 13.0.4 ready
Host1 capability before authentication: IMAP4rev1 NAMESPACE AUTH=CRAM-MD5 AUTH=LOGIN AUTH=PLAIN IDLE COMPRESS=DEFLATE ACL UNSELECT UIDPLUS QUOTA BINARY AUTH COMPRESS
Host1: mx.mx.domain.com says it has CAPABILITY for AUTHENTICATE LOGIN
Host1: success login on [mx.domain.com] with user [ken@domain.com] auth [LOGIN] or [LOGIN]
Host2: connecting and login on host2 [10.5.4.15] port [143] with user [ken*vmail]
Host2 IP address: 10.5.4.15 Local IP address: 192.168.0.17
Host2 banner: * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
Host2 capability before authentication: IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ STARTTLS AUTH=PLAIN AUTH=LOGIN AUTH
Host2: Socket successfully converted to SSL
Host2: 10.5.4.15 says it has CAPABILITY for AUTHENTICATE LOGIN
Host2: success login on [10.5.4.15] with user [ken*vmail] auth [LOGIN] or [LOGIN]
Host1: state Authenticated
Host2: state Authenticated
Host1 capability once authenticated: IMAP4rev1 NAMESPACE AUTH=CRAM-MD5 AUTH=LOGIN AUTH=PLAIN IDLE COMPRESS=DEFLATE ACL UNSELECT UIDPLUS QUOTA BINARY AUTH COMPRESS
Host2 capability once authenticated: IMAP4rev1 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 SNIPPET=FUZZY PREVIEW=FUZZY PREVIEW STATUS=SIZE SAVEDATE LITERAL+ NOTIFY SPECIAL-USE FILTER=SIEVE QUOTA ACL RIGHTS=texk THREAD I18NLEVEL CONTEXT SNIPPET PREVIEW STATUS FILTER RIGHTS
Host1: No ID capability
Host2: found ID capability. Sending/receiving ID, presented in raw IMAP for now.
In order to avoid sending/receiving ID, use option --noid
Sending: 6 ID ("name" "imapsync" "version" "2.290" "os" "linux" "vendor" "Gilles LAMIRAL" "support-url" "https://imapsync.lamiral.info/" "date" "20-Aug-2024 10:37:23 +0000" "side" "host2")
Sent 181 bytes
Read:   * ID ("name" "Dovecot")
        6 OK ID completed (0.001 + 0.000 secs).

Host2: QUOTA capability found, presented in raw IMAP on next lines
Sending: 7 GETQUOTAROOT INBOX
Sent 22 bytes
Read:   7 OK No quota (0.096 + 0.000 + 0.095 secs).

Host2: Quota current storage is 0 bytes. Limit is 0 bytes. So 0 % full
Host1: Compression is off. Use --compress1 to allow compression on host1
Host2: Compression is off. Use --compress2 to allow compression on host2
Compression often generates annoying errors, especially with SSL connexions, Gmail, Office365. So, avoid it.
Host1: found 10 folders.
Host2: found 11 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.
Excluding folders matching pattern ^Public$|^Shared$

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 off automapping folders ( use --automap to turn on automapping )

++++ 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 () "/" "INBOX"
* LIST () "/" "&BB0ENQQ2BDUEOwQwBEIENQQ7BEwEPQQwBE8- &BD8EPgRHBEIEMA-"
* LIST () "/" "&BB4EMQQ9BDAEQARDBDYENQQ9BD0ESwQ1- &BE0EOwQ1BDwENQQ9BEIESw-"
* LIST () "/" "&BB4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-"
* LIST () "/" "&BCcENQRABD0EPgQyBDgEOgQ4-"
* LIST () "/" "&BCMENAQwBDsENQQ9BD0ESwQ1-"
* LIST () "/" "&BD4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-"
* LIST () "/" "Drafts"
* LIST () "/" "Sent"
* LIST () "/" "Trash"
18 OK LIST completed

[&BB0ENQQ2BDUEOwQwBEIENQQ7BEwEPQQwBE8- &BD8EPgRHBEIEMA-] = [Unsolicited mail]
[&BB4EMQQ9BDAEQARDBDYENQQ9BD0ESwQ1- &BE0EOwQ1BDwENQQ9BEIESw-] = [Detected elements]
[&BB4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-] = [Sent]
[&BCMENAQwBDsENQQ9BD0ESwQ1-] = [Deleted]
[&BCcENQRABD0EPgQyBDgEOgQ4-] = [Drafts]
[&BD4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-] = [sent]
[Drafts]
[INBOX]
[Sent]
[Trash]

Host2: folders list (first the raw imap format then the [X] = [Y]):
* LIST (\HasNoChildren \UnMarked \Trash) "/" Trash
* LIST (\HasNoChildren \UnMarked \Sent) "/" Sent
* LIST (\HasNoChildren \UnMarked \Drafts) "/" Drafts
* LIST (\HasNoChildren \UnMarked) "/" &BD4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-
* LIST (\HasNoChildren \UnMarked) "/" &BCcENQRABD0EPgQyBDgEOgQ4-
* LIST (\HasNoChildren \UnMarked) "/" &BCMENAQwBDsENQQ9BD0ESwQ1-
* LIST (\HasNoChildren \UnMarked) "/" &BB4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-
* LIST (\HasNoChildren \UnMarked) "/" "&BB4EMQQ9BDAEQARDBDYENQQ9BD0ESwQ1- &BE0EOwQ1BDwENQQ9BEIESw-"
* LIST (\HasNoChildren \UnMarked) "/" "&BB0ENQQ2BDUEOwQwBEIENQQ7BEwEPQQwBE8- &BD8EPgRHBEIEMA-"
* LIST (\HasNoChildren \UnMarked \Junk) "/" Junk
* LIST (\HasNoChildren) "/" INBOX
12 OK List completed (0.005 + 0.000 + 0.004 secs).

[&BB0ENQQ2BDUEOwQwBEIENQQ7BEwEPQQwBE8- &BD8EPgRHBEIEMA-] = [Unsolicited mail]
[&BB4EMQQ9BDAEQARDBDYENQQ9BD0ESwQ1- &BE0EOwQ1BDwENQQ9BEIESw-] = [Detected elements]
[&BB4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-] = [Sent]
[&BCMENAQwBDsENQQ9BD0ESwQ1-] = [Deleted]
[&BCcENQRABD0EPgQyBDgEOgQ4-] = [Drafts]
[&BD4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-] = [sent]
[Drafts]
[INBOX]
[Junk]
[Sent]
[Trash]

Folders in host2 not in host1:
[Junk]

Checking SEARCH ALL works on both accounts. To avoid that check, use --nochecknoabletosearch
Host1: checking if SEARCH ALL works on INBOX
Host1: folder [INBOX] has 12216 messages mentioned by SELECT
Host1: folder [INBOX] has 12216 messages found by SEARCH ALL
Host1: folder [INBOX] has the same messages count (12216) by SELECT and SEARCH ALL
Host2: checking if SEARCH ALL works on INBOX
Host2: folder [INBOX] has 12211 messages mentioned by SELECT
Host2: folder [INBOX] has 12211 messages found by SEARCH ALL
Host2: folder [INBOX] has the same messages count (12211) by SELECT and SEARCH ALL
Good! SEARCH ALL works on both accounts.
++++ Looping on each one of 10 folders to sync
Folder    1/10 [&BB0ENQQ2BDUEOwQwBEIENQQ7BEwEPQQwBE8- &BD8EPgRHBEIEMA-] = [Unsolicited mail] -> [&BB0ENQQ2BDUEOwQwBEIENQQ7BEwEPQQwBE8- &BD8EPgRHBEIEMA-] = [Unsolicited mail]
Host1: folder [&BB0ENQQ2BDUEOwQwBEIENQQ7BEwEPQQwBE8- &BD8EPgRHBEIEMA-] has 0 messages in total (mentioned by SELECT)
Host2: folder [&BB0ENQQ2BDUEOwQwBEIENQQ7BEwEPQQwBE8- &BD8EPgRHBEIEMA-] has 0 messages in total (mentioned by SELECT)
Host2: folder [&BB0ENQQ2BDUEOwQwBEIENQQ7BEwEPQQwBE8- &BD8EPgRHBEIEMA-] permanentflags:
Host1: folder [&BB0ENQQ2BDUEOwQwBEIENQQ7BEwEPQQwBE8- &BD8EPgRHBEIEMA-] considering 0 messages
Host2: folder [&BB0ENQQ2BDUEOwQwBEIENQQ7BEwEPQQwBE8- &BD8EPgRHBEIEMA-] considering 0 messages
Host1: folder [&BB0ENQQ2BDUEOwQwBEIENQQ7BEwEPQQwBE8- &BD8EPgRHBEIEMA-] selected 0 messages, duplicates 0
Host2: folder [&BB0ENQQ2BDUEOwQwBEIENQQ7BEwEPQQwBE8- &BD8EPgRHBEIEMA-] selected 0 messages, duplicates 0
Folder    2/10 [&BB4EMQQ9BDAEQARDBDYENQQ9BD0ESwQ1- &BE0EOwQ1BDwENQQ9BEIESw-] = [Detected elements] -> [&BB4EMQQ9BDAEQARDBDYENQQ9BD0ESwQ1- &BE0EOwQ1BDwENQQ9BEIESw-] = [Detected elements]
Host1: folder [&BB4EMQQ9BDAEQARDBDYENQQ9BD0ESwQ1- &BE0EOwQ1BDwENQQ9BEIESw-] has 1 messages in total (mentioned by SELECT)
Host2: folder [&BB4EMQQ9BDAEQARDBDYENQQ9BD0ESwQ1- &BE0EOwQ1BDwENQQ9BEIESw-] has 1 messages in total (mentioned by SELECT)
Host2: folder [&BB4EMQQ9BDAEQARDBDYENQQ9BD0ESwQ1- &BE0EOwQ1BDwENQQ9BEIESw-] permanentflags:
Host1: folder [&BB4EMQQ9BDAEQARDBDYENQQ9BD0ESwQ1- &BE0EOwQ1BDwENQQ9BEIESw-] considering 0 messages
Host2: folder [&BB4EMQQ9BDAEQARDBDYENQQ9BD0ESwQ1- &BE0EOwQ1BDwENQQ9BEIESw-] considering 0 messages
Host1: folder [&BB4EMQQ9BDAEQARDBDYENQQ9BD0ESwQ1- &BE0EOwQ1BDwENQQ9BEIESw-] selected 0 messages, duplicates 0
Host2: folder [&BB4EMQQ9BDAEQARDBDYENQQ9BD0ESwQ1- &BE0EOwQ1BDwENQQ9BEIESw-] selected 0 messages, duplicates 0
Folder    3/10 [&BB4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-] = [Sent] -> [&BB4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-] = [Sent]
Host1: folder [&BB4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-] has 2 messages in total (mentioned by SELECT)
Host2: folder [&BB4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-] has 2 messages in total (mentioned by SELECT)
Host2: folder [&BB4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-] permanentflags:
Host1: folder [&BB4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-] considering 0 messages
Host2: folder [&BB4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-] considering 0 messages
Host1: folder [&BB4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-] selected 0 messages, duplicates 0
Host2: folder [&BB4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-] selected 0 messages, duplicates 0
Folder    4/10 [&BCMENAQwBDsENQQ9BD0ESwQ1-] = [Deleted] -> [&BCMENAQwBDsENQQ9BD0ESwQ1-] = [Deleted]
Host1: folder [&BCMENAQwBDsENQQ9BD0ESwQ1-] has 754 messages in total (mentioned by SELECT)
Host2: folder [&BCMENAQwBDsENQQ9BD0ESwQ1-] has 754 messages in total (mentioned by SELECT)
Host2: folder [&BCMENAQwBDsENQQ9BD0ESwQ1-] permanentflags:
Host1: folder [&BCMENAQwBDsENQQ9BD0ESwQ1-] considering 7 messages
Host2: folder [&BCMENAQwBDsENQQ9BD0ESwQ1-] considering 7 messages
Host1: folder [&BCMENAQwBDsENQQ9BD0ESwQ1-] selected 7 messages, duplicates 0
Host2: folder [&BCMENAQwBDsENQQ9BD0ESwQ1-] selected 7 messages, duplicates 0
Folder    5/10 [&BCcENQRABD0EPgQyBDgEOgQ4-] = [Drafts] -> [&BCcENQRABD0EPgQyBDgEOgQ4-] = [Drafts]
Host1: folder [&BCcENQRABD0EPgQyBDgEOgQ4-] has 0 messages in total (mentioned by SELECT)
Host2: folder [&BCcENQRABD0EPgQyBDgEOgQ4-] has 0 messages in total (mentioned by SELECT)
Host2: folder [&BCcENQRABD0EPgQyBDgEOgQ4-] permanentflags:
Host1: folder [&BCcENQRABD0EPgQyBDgEOgQ4-] considering 0 messages
Host2: folder [&BCcENQRABD0EPgQyBDgEOgQ4-] considering 0 messages
Host1: folder [&BCcENQRABD0EPgQyBDgEOgQ4-] selected 0 messages, duplicates 0
Host2: folder [&BCcENQRABD0EPgQyBDgEOgQ4-] selected 0 messages, duplicates 0
Folder    6/10 [&BD4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-] = [sent] -> [&BD4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-] = [sent]
Host1: folder [&BD4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-] has 4561 messages in total (mentioned by SELECT)
Host2: folder [&BD4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-] has 4558 messages in total (mentioned by SELECT)
Host2: folder [&BD4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-] permanentflags:
Host1: folder [&BD4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-] considering 7 messages
Host2: folder [&BD4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-] considering 7 messages
Host1: folder [&BD4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-] selected 7 messages, duplicates 0
Host2: folder [&BD4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-] selected 7 messages, duplicates 0
Folder    7/10 [Drafts]                            -> [Drafts]
Host1: folder [Drafts] has 0 messages in total (mentioned by SELECT)
Host2: folder [Drafts] has 0 messages in total (mentioned by SELECT)
Host2: folder [Drafts] permanentflags:
Host1: folder [Drafts] considering 0 messages
Host2: folder [Drafts] considering 0 messages
Host1: folder [Drafts] selected 0 messages, duplicates 0
Host2: folder [Drafts] selected 0 messages, duplicates 0
Folder    8/10 [INBOX]                             -> [INBOX]
Host1: folder [INBOX] has 12216 messages in total (mentioned by SELECT)
Host2: folder [INBOX] has 12211 messages in total (mentioned by SELECT)
Host2: folder [INBOX] permanentflags:
Host1: folder [INBOX] considering 43 messages
Host2: folder [INBOX] considering 48 messages
Host1: folder [INBOX] selected 43 messages, duplicates 0
Host2: folder [INBOX] selected 48 messages, duplicates 0
Folder    9/10 [Sent]                              -> [Sent]
Host1: folder [Sent] has 90 messages in total (mentioned by SELECT)
Host2: folder [Sent] has 89 messages in total (mentioned by SELECT)
Host2: folder [Sent] permanentflags:
Host1: folder [Sent] considering 0 messages
Host2: folder [Sent] considering 0 messages
Host1: folder [Sent] selected 0 messages, duplicates 0
Host2: folder [Sent] selected 0 messages, duplicates 0
Folder   10/10 [Trash]                             -> [Trash]
Host1: folder [Trash] has 154 messages in total (mentioned by SELECT)
Host2: folder [Trash] has 139 messages in total (mentioned by SELECT)
Host2: folder [Trash] permanentflags:
Host1: folder [Trash] considering 0 messages
Host2: folder [Trash] considering 0 messages
Host1: folder [Trash] selected 0 messages, duplicates 0
Host2: folder [Trash] selected 0 messages, duplicates 0
++++ End looping on each folder
++++ Statistics
Transfer started on                     : Wednesday 30 April 2025-04-30 11:55:01 +0000 UTC
Transfer ended on                       : Wednesday 30 April 2025-04-30 11:55:04 +0000 UTC
Transfer time                           : 2.8 sec
Folders synced                          : 10/10 synced
Folders deleted on host2                : 0
Messages transferred                    : 0
Messages skipped                        : 57
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    : 5 messages
Messages deleted on host1               : 0
Messages deleted on host2               : 0
Total bytes transferred                 : 0 (0.000 KiB)
Total bytes skipped                     : 12585812 (12.003 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           : 179.3 MiB (*time 0.1 MiB*h) (started with 167.7 MiB)
Load end is                             : 0.22 0.20 0.23 1/533 on 6 cores
CPU time and %cpu                       : 2.08 sec 75.3 %cpu 12.5 %allcpus
Biggest message transferred             : 0 bytes (0.000 KiB)
Memory/biggest message ratio            : NA
The sync looks good, all 57 identified messages in host1 are on host2.
There is no unidentified message on host1.
The sync is not strict, there are 5 among 62 identified messages in host2 that are not on host1. Use --delete2 and sync again to delete them and have a strict sync.
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/50 nb_errors/max_errors PID 1685512
Removing pidfile /etc/imapsync/ken_whzjvk.pid
No log file because of option --nolog

last log in web imapsync2

2025-04-30T14:55:04+03:00 [15:imapsync2:imapsync] task ken_whzjvk: tx=0, msg=Exiting with return value 0 (EX_OK: successful termination) 0/50 nb_errors/max_errors PID 1685512
2025-04-30T15:00:05+03:00 [15:imapsync2:imapsync] task ken_whzjvk: tx=0, msg=Exiting with return value 0 (EX_OK: successful termination) 0/50 nb_errors/max_errors PID 1685598
2025-04-30T15:05:05+03:00 [15:imapsync2:imapsync] task ken_whzjvk: tx=0, msg=Exiting with return value 0 (EX_OK: successful termination) 0/50 nb_errors/max_errors PID 1685680
2025-04-30T15:12:15+03:00 [15:imapsync2:imapsync] task ken_whzjvk: tx=0, msg=Exiting with return value 0 (EX_OK: successful termination) 0/50 nb_errors/max_errors PID 1685762
2025-04-30T15:17:03+03:00 [15:imapsync2:imapsync] task ken_whzjvk: imapsync error: 101
2025-04-30T15:17:03+03:00 [15:imapsync2:imapsync] task ken_whzjvk: tx=, msg=Exiting with return value 101 (EXIT_CONNECTION_FAILURE_HOST1) 1/50 nb_errors/max_errors PID 1685846

[root@mail _data] #du --max-depth=1 -hm
8089 ./ken

Remote mail server
image

Are you using the “only INBOX” option in imapsync? See also Imapsync — NS8 documentation
This way only unread/unseen mails are transferred.

No. I use “All folders”

Are you migrating from mdaemon or do you want to always get the mails from there?

Host1 is mdaemon and it seems to lose the connection.

It seems that imapsync needs a special option --noabletosearch for syncing from mdaemon, see also https://imapsync.lamiral.info/FAQ.d/FAQ.MDaemon.txt

You could test it by using a custom script in imapsync, see also GitHub - NethServer/ns8-imapsync: Imapsync for NethServer 8

Here’s the imapsync command to put to a script and add the --noabletosearch option.

1 Like

I’m migrating from mdaemon.

1 Like

Added to cron but nothing changed :frowning:

From GitHub - NethServer/ns8-imapsync: Imapsync for NethServer 8 :

cron (e.g. ~imapsync1/.config/state/cron) This folder is designated for storing cron files, each of which should end its name with .custom, while adhering to the cron syntax.

Please change the filename to *.custom and remove the MAIL_HOST line, the file should just contain a cron line.

Did you already check the mdaemon logs? It would be interesting why it’s disconnecting…

1 Like

Thank you.

Socket connection closed by the other side (how rude!)

On my mail server MDAEMON I have two domains
domain1.com and domain2.com
In the imapsync settings I specified user@domain2.com and the IMAP server mx.domain1.com
After changing the user name to user@domain1.com, synchronization occurs without errors.

1 Like

2 posts were split to a new topic: Mail sync using imapsync and outlook failed