Imap folders sync

It seems really strange. Would you mind running a test? Please try to create ‘test’ custom folder on the Outlook side (the folder with similar name as you created on the portal). After that check out the sync of this folder (for example, move a letter to this folder).
As for the issue itself, we need to take a look at Community server and Mail server logs folders from your portal. Please provide us with them. They are located here:
CS (for Windows): Program Files (x86)\Ascensio System SIA\CommunityServer\Logs
Mail server (docker installation): /app/onlyoffice/MailServer/logs

Update: no logs are required. We have reproduced the issue on our side and added a bug to internal tracker. We have started working on it.
Thank you for pointing us to this situation!
The workaround solution at the moment is creating the folder with similar name on the client side (Outlook, Thunderbird, etc.)

Hi Alexandre

Glad I can help, pls let us know when it is resolved as we have given demo to clients, but this issue is creating issue, I will suggest to resolve it on the expedited basis, as mail is the most important part of the solution.

regards

Hello @pioneer
We are working on it already. Unfortunately, I cannot provide you with ETA at the moment. However I will update this thread when we have something to share.
P.S. If you have a license, it’s better to contact us via Zendesk to get prompt replies.

Hi Alexandre,

We are using community version right now, but looking forward for enterprise license, but mail issue is holding us back, as lot of our users have imap folders and they want to sync. without that our working become complicated. Pls let us know how soon it can be rectified.

Suggestion : you can use integration with many other mail server like mailcow and other which would proide you sync facility.

regards

Hello @pioneer
Unfortunately, there’s no ETA at the moment, but we have already started our work. I will update this thread when we have something to share.
If you want to speed up the situation, perhaps you should contact colleagues of mine to discuss it. There’s a post about this possibility: Get dedicated support

Hi any progress on this issue

Hello @pioneer
The work is still in progress. I will update this thread when we have something to share.

Hello @Alexandre ,
Any update on this regard?
I am testing latest Docker-CommunityServer version 12.6.0.1900 (which seems to have been last updated 3 months ago)
For a test, I imported only one (though large ~14GB) mbox from Google Workspace export (takeout) using this GitHub - rgladwell/imap-upload: Python script for uploading a local mbox file to IMAP4 server.
like this:
imap_upload.py --user=user@mydomain.com --password=mypassword --host=localhost --port=143 --error='All mail Including Spam and Trash_errors.mbox' --google-takeout --folder-separator='/' --google-takeout-first-label 'All mail Including Spam and Trash.mbox'

results was very successful: Done. (OK: 10723, WARNING: 0, ERROR: 0) (10723 mails all successfully imported) and resulting in added 14GB of mail in /app/onlyoffice/MailServer/data/vmail1/
Then, I manually added the following to the “subscriptions” file inside the user Maildir, so that these newly created folders appear in the mailaggregator web app

Archived
Category Forums
Category Personal
Category Promotions
Category Updates
Opened

They do appear in mailaggregator, but the sync is so so so slow, taking many hours to sync a mere 10k messages.

I went to sleep and woke up the next morning, and still the “Opened” folder still shows empty in mailaggregator… but most of the messages in it appear in inbox with the “Opened” tag. Also the Category* labels/tags appearing on respective messages in Inbox.
and comparing:
du -sh /app/onlyoffice/MailServer/data/vmail1/ = 14GB
du -sh /app/onlyoffice/CommunityServer/data/addons/mail/Data/aggregator = 11GB

There seems to be a discrepancy in size…
There seems no way to see total message count per folder in MailAggregator webmail app. Only unread count is shown. The pagination function in each folder does not say how many pages of x messages (25/50/75/100) :frowning:

Moreover, I am disappointed about this duplication of data on the server between the actual MailServer (dovecot) and MailAggregator. Imagine tens of email accounts/mailboxes each in tens of GB, all being copied/duplicated in MailAggregator.

IMHO: An actual IMAP implementation is much needed, or at least a way for users to opt-out of using mail aggregator and option to use third-party webmail solutions such as roundcube and/or horde IMP, etc.

Hello @Tamer
There’s no news on the situations described by the topic starter in this thread at the moment. We are still working on them. As for situations you mentioned, we will check them out and update this thread as soon as possible.

1 Like

We were looking for solution, we have discarded the onlyoffice from primary office suite because of imap issue, we will take up again when this issue is resolved as imap folder sync critical to our users.

regards

1 Like

Hello @Tamer

Please clarify if the situation has changed and the folder sizes match now.
Additionally, please provide us with general information about your server (CPU, RAM).

root@cloud ~ # du -sh /app/onlyoffice/MailServer/data/vmail1/
14G /app/onlyoffice/MailServer/data/vmail1/
root@cloud ~ # du -sh /app/onlyoffice/CommunityServer/data/addons/mail/Data/aggregator
11G /app/onlyoffice/CommunityServer/data/addons/mail/Data/aggregator
root@cloud ~ # free -m
total used free shared buff/cache available
Mem: 64087 10336 1265 736 54092 53750
Swap: 32734 1017 31717
root@cloud ~ # head /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 158
model name : Intel(R) Core™ i7-7700 CPU @ 3.60GHz
stepping : 9
microcode : 0xf8
cpu MHz : 900.439
cache size : 8192 KB
physical id : 0
root@cloud ~ #

1 Like

I’ll join this thread, if you don’t mind. :slight_smile:
Thanks for the information.

We need some time to test this. As soon as we have updates or need any data from you, I’ll let you know.

1 Like

Thanks Nikolas. Looking forward to your response. And more than glad to help with any information or testing too, as needed.

Hello @Tamer
Please provide us with additional information about your usage scenario of imap-upload app:

  • user@mydomain.com - is this a mailbox added to our mail server on the Mail Server tab?
  • have you used --ssl flag?
  • for --host=localhost > did you specify it as localhost or did you specify the domain name?

If it’s possible, please provide us with the exact command that you used (just hide your login and password).

Hello @Alexandre

  1. Yes, user@mydomain.com is a mailbox added to OnlyOffice mail server.

  2. with --ssl flag, imap_upload.py failed to connect properly. So what I did, inside the onlyoffice-mail-server container, I edited /etc/dovecot/dovecot.conf as follows:

# Allow plain text password per IP address/net
remote 172.26.0.0/24 {
   ssl=yes
   disable_plaintext_auth = no
}

and restarted dovecot (or the onlyoffice-mail-server container), of course.

  1. for --host flag, I specified it as localhost only. Exactly as I wrote the command in first reply in this thread. Note that in the change I made above to dovecot.conf, I specified the class B network of the docker compose network (onlyoffice network).

The images and versions used are (or were) the latest as of the time of original posting:

onlyoffice/mailserver:1.6.75
onlyoffice/controlpanel:3.5.2.530
image: onlyoffice/communityserver:12.6.0.1900

Thank you, we are looking into it.

Hello @Tamer
We have run a few tests and so far all things are OK. Could you please clarify at which step you faced an issue with with synchronization, and what the current status of this process is? Did it sync after all?

Hi @Alexandre
I am not sure I understand your question about “which step”? Synchronization happens automatically… And I already posted weeks after the initial report and it was at the same.