1 (edited by kazix 2016-03-16 18:55:29)

Topic: SOGo problem with ActiveSync Outlook 2016

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.4
- Linux/BSD distribution name and version: ubuntu
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Mariadb
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? no
- Related log if you're reporting an issue:
Mar 16 05:58:10 sogod [2716]: <0x0x7fc851735b18[NGImap4Client]> Note: no key found for sorting, using 'DATE': (null)
Mar 16 05:58:10 sogod [2716]: <0x0x7fc851735b18[NGImap4Client]> Note: no key found for sorting, using 'DATE': (null)
....
====

Hello, yes i know that is Sogo problem, but maybe you can help me wink
after migration (http://www.iredmail.org/forum/topic1075 … dmail.html) i try connect Outlook 2016 (EAS) to server. All catalogs create in outlook, but they are empty...
i can send message, connection is correct, but not see anything.
Web Sogo works fine, iPhone Exchange connection to, but Outlook not sad
sogo error say only:

Mar 16 05:58:10 sogod [2716]: <0x0x7fc851735b18[NGImap4Client]> Note: no key found for sorting, using 'DATE': (null)
Mar 16 05:58:10 sogod [2716]: <0x0x7fc851735b18[NGImap4Client]> Note: no key found for sorting, using 'DATE': (null)

maybe someone have something like that or known how to solve this...

kazix

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: SOGo problem with ActiveSync Outlook 2016

kazix wrote:

Mar 16 05:58:10 sogod [2716]: <0x0x7fc851735b18[NGImap4Client]> Note: no key found for sorting, using 'DATE': (null)

Safe to ignore.

kazix wrote:

i try connect Outlook 2016 (EAS) to server. All catalogs create in outlook, but they are empty...

Try to update these settings in /etc/sogo/sogo.conf:

    SOGoMaximumPingInterval = 3540;
    SOGoMaximumSyncInterval = 3540;
    SOGoInternalSyncInterval = 30;

Restart SOGo service and try again.

if it still doesn't work, update Nginx config file /etc/nginx/templates/sogo.tmpl also:

location ^~ /SOGo {
    ...
    proxy_send_timeout 3540;
    proxy_read_timeout 3540;
}

3

Re: SOGo problem with ActiveSync Outlook 2016

Sorry Zhang,
i have change this value and the same, outlook not sync.
i see this on sogo.log:
Mar 16 11:21:59 sogod [2978]: |SOGo| terminating app, vMem size limit (384 MB) has been reached (currently 386 MB)
maybe first sync generate this problem?

i found this on forum:
http://www.iredmail.org/forum/topic9721 … limit.html

but how much increase vMem - maybe someone have example from life?
users have mailbox size limit 10 GB.

thanks, kazix

4

Re: SOGo problem with ActiveSync Outlook 2016

kazix wrote:

Mar 16 11:21:59 sogod [2978]: |SOGo| terminating app, vMem size limit (384 MB) has been reached (currently 386 MB)
maybe first sync generate this problem?

You can increase the memory size with parameter "SxVMemLimit =" in sogo.conf.

Quote from a post in SOGo mailing list from SOGo core developer Ludovic Marcotte:

Ludovic Marcotte wrote:

You should consider 25-45 MB of memory per EAS user.

So, do your calculation. smile

5

Re: SOGo problem with ActiveSync Outlook 2016

not so easy sad

i change SxVMemLimit to 1024 (for testing now)
and when try sync with outlook 2016 sogo.log say:

Mar 16 15:54:29 sogod [7066]: <0x0x7f215ec7b3e8[NGImap4Client]> Note: no key found for sorting, using 'DATE': (null)
Mar 16 15:54:29 sogod [7066]: <0x0x7f215ea81488[SOGoActiveSyncDispatcher]> Change detected during Sync, we push the content.
Mar 16 15:54:45 sogod [7066]: [ERROR] <0x0x7f215e9ac828[WOHttpTransaction]> client disconnected during delivery of response for <WORequest[0x0x7f215ea6a808]: method=POST uri=/SOGo/Microsoft-Server-ActiveSync?Cmd=Sync&User=kazix@SuperSecret.com&DeviceId=C03C14FB0F034B0F813E7F5EAB10F47A&DeviceType=WindowsOutlook15 app=SOGo rqKey=Microsoft-Server-ActiveSync rqPath=(null)> (len=185152543): the socket was shutdown
Mar 16 15:54:45 sogod [7066]: SuperSecret.com "POST /SOGo/Microsoft-Server-ActiveSync?Cmd=Sync&User=kazik@SuperSecret.com&DeviceId=C03C14FB0F034B0F813E7F5EAB10F47A&DeviceType=WindowsOutlook15 HTTP/1.0" 200 185152543/1068 119.261 - - 263M

aaa... WTF is going non?!
all other ways works fine...

kazix

6

Re: SOGo problem with ActiveSync Outlook 2016

kazix wrote:

Mar 16 15:54:45 sogod [7066]: [ERROR] <0x0x7f215e9ac828[WOHttpTransaction]> client disconnected during delivery of response for <WORequest[0x0x7f215ea6a808]: method=POST uri=/SOGo/Microsoft-Server-ActiveSync?Cmd=Sync&User=kazix@SuperSecret.com&DeviceId=C03C14FB0F034B0F813E7F5EAB10F47A&DeviceType=WindowsOutlook15 app=SOGo rqKey=Microsoft-Server-ActiveSync rqPath=(null)> (len=185152543): the socket was shutdown

This always happens. I didn't get an official answer from SOGo developers about how to properly tune Nginx to avoid this issue.

Reference: http://marc.info/?l=sogo-users&m=14 … 35&w=2

7

Re: SOGo problem with ActiveSync Outlook 2016

hej Zhang, any ideas what i can do?
on the apache is the same problem?

maybe the fastest way is reinstall iRedMail and Sogo and check it with Apache?

kazix

8

Re: SOGo problem with ActiveSync Outlook 2016

This issue happens with Apache or Nginx, i tried many options, still the same.

I suggest you ask in SOGo mailing list to get support from developers, ask them to clearly explain what setting you should use in Nginx/Apache.

9

Re: SOGo problem with ActiveSync Outlook 2016

Ok, i try to write to them.
I can downgrade outlook to 2013,  is this version should work fine?
Someone use iredadmin + sogo + outlook 2013 in production?
Maybe 2016 is problem?
Or ubuntu, No its imposible...
Kazix

10

Re: SOGo problem with ActiveSync Outlook 2016

kazix wrote:

I can downgrade outlook to 2013,  is this version should work fine?

Outlook works fine even there's error "client disconnected during delivery of response for  ...". So i suggest you give it a try, run Outlook for some days. And try to get answer from SOGo developers.

11

Re: SOGo problem with ActiveSync Outlook 2016

hey Zhang,

you better sit down, please smile

i think this situation is very strange, so i try check it:

-> Build new iRedMail instance (this time on Centos)
-> Default instalation - install Mariadb on localhost
-> create new mail user
-> Outlook 2016 with EAS works fine wink
-> in next week i copy DB and Mail and check with more e-mails

i supose this:
- before i install iRedMail without MariaDB (another server) - this is my first suspect
- ubuntu (now i say maybe) - very strange sogo behavior (a lots of ERROR in sogo.log)

i will check this, all logs in next week and write...
kazix

12

Re: SOGo problem with ActiveSync Outlook 2016

kazix wrote:

- ubuntu (now i say maybe) - very strange sogo behavior (a lots of ERROR in sogo.log)

What error?

13

Re: SOGo problem with ActiveSync Outlook 2016

hello,
its performation errors - like this:

Mar 18 22:04:30 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:04:31 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:04:33 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:04:34 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:04:36 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:04:37 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:04:39 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:04:40 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:04:42 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:04:43 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:04:44 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:04:46 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:04:47 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:04:49 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:04:50 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:04:52 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:04:53 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:04:55 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:04:56 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:04:58 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:04:59 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:05:01 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:05:02 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:05:04 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:05:05 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:05:07 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:05:08 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:05:10 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:05:11 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:05:12 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:05:14 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:05:15 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:05:17 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:05:18 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:05:20 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:05:21 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:05:23 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:05:24 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:05:26 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!

and like this:

Mar 18 22:04:26 sogod [4147]: [ERROR] <0x0x7f346fde7d68[WOHttpTransaction]> client disconnected during delivery of response for <WORequest[0x0x7f346fe0c0f8]: method=POST uri=/SOGo/Microsoft-Server-ActiveSync?Cmd=Ping&User=kazix%40deleteit.com&DeviceId=android1420070435759&DeviceType=Android app=SOGo rqKey=Microsoft-Server-ActiveSync rqPath=(null)> (len=13): the socket was shutdown
Mar 18 22:04:26 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:04:26 sogod [4147]: [ERROR] <0x0x7f346fd884b8[WOHttpTransaction]> client disconnected during delivery of response for <WORequest[0x0x7f346fd963f8]: method=POST uri=/SOGo/Microsoft-Server-ActiveSync?User=kazix%40deleteit.com&DeviceId=1QU8UUOJB924PBUIUCGRDBK374&DeviceType=iPhone&Cmd=Sync app=SOGo rqKey=Microsoft-Server-ActiveSync rqPath=(null)> (len=0): the socket was shutdown
Mar 18 22:04:26 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!
Mar 18 22:04:26 sogod [4147]: [ERROR] <0x0x7f346fac1f58[WOHttpTransaction]> client disconnected during delivery of response for <WORequest[0x0x7f346fadc9e8]: method=POST uri=/SOGo/Microsoft-Server-ActiveSync?Cmd=Sync&User=kazix%40deleteit.com&DeviceId=android1420070435759&DeviceType=Android app=SOGo rqKey=Microsoft-Server-ActiveSync rqPath=(null)> (len=0): the socket was shutdown

there is only one client sad
i think, that connection with remote mysql server is problem...

mariadb client:

kazix@mail:~$ sudo dpkg -l | grep mariadb
ii  libmariadbclient18:amd64            5.5.47-1ubuntu0.14.04.1              amd64        MariaDB database client library
ii  mariadb-client-core-5.5             5.5.47-1ubuntu0.14.04.1              amd64        MariaDB database core client binaries
ii  mariadb-common                      5.5.47-1ubuntu0.14.04.1              all          MariaDB common metapackage

kazix

14

Re: SOGo problem with ActiveSync Outlook 2016

kazix wrote:

Mar 18 22:05:01 sogod [4142]: [ERROR] <0x0x7f346fe13848[WOWatchDog]> No child available to handle incoming request!

For Debian/Ubuntu, please increase preforked processes in /etc/default/sogo, parameter 'PREFORK='.

kazix wrote:

Mar 18 22:04:26 sogod [4147]: [ERROR] <0x0x7f346fde7d68[WOHttpTransaction]> client disconnected during delivery of response for <WORequest[0x0x7f346fe0c0f8]: method=POST uri=/SOGo/Microsoft-Server-ActiveSync?Cmd=Ping&User=kazix%40deleteit.com&DeviceId=android1420070435759&DeviceType=Android app=SOGo rqKey=Microsoft-Server-ActiveSync rqPath=(null)> (len=13): the socket was shutdown

A known "issue" with SOGo, it requires a proper timeout setting in Apache/Nginx, but i didn't figure it out. There're several reports in SOGo mailing list, but no precious answers yet. I suggest you ask SOGo developers again:
http://sogo.nu/support/index.html#/community

15

Re: SOGo problem with ActiveSync Outlook 2016

sorry, i have little holidays wink

i write on sogo list
https://lists.inverse.ca/sogo/arc/users … 00241.html
and found nginx example config for sogo:
https://lists.inverse.ca/sogo/arc/users … 00099.html

so i change default iRedAdmin config (Centos):

/etc/nginx/conf.d/default.conf
# in HTTPS --> server section i add
       client_max_body_size 20m;
        client_body_buffer_size 512k;
        client_header_timeout 360;
        client_body_timeout 360;
        send_timeout 360;

/etc/nginx/templates/sogo.tmpl
#i change settings for /SOGo location
location ^~ /SOGo {
    proxy_pass http://127.0.0.1:20000;
    #proxy_redirect http://127.0.0.1:20000/SOGo/ /SOGo;
    # forward user's IP address
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $host;
    proxy_set_header x-webobjects-server-protocol HTTP/1.0;
    proxy_set_header x-webobjects-remote-host $server_name;
    proxy_set_header x-webobjects-server-name $server_name;
    proxy_set_header x-webobjects-server-url $scheme://$host;
    proxy_connect_timeout 360;
    proxy_send_timeout 360;
    proxy_read_timeout 360;
    proxy_buffer_size 4k;
    proxy_buffers 16 64k;
    proxy_busy_buffers_size 64k;
    proxy_temp_file_write_size 64k;
}

and it works wink
sometimes nginx has errors (connection timeout) but generally e-mail sync with Outlook 2016 and others clients

16

Re: SOGo problem with ActiveSync Outlook 2016

kazix wrote:

#i change settings for /SOGo location
location ^~ /SOGo {

I tried, but it doesn't work. But it works if you set correct timeout in "location ^~ /Microsoft-Server-ActiveSync {}":

location ^~ /Microsoft-Server-ActiveSync {
    ...

    proxy_connect_timeout 360;
    proxy_send_timeout 360;
    proxy_read_timeout 360;
    proxy_buffers 64 256k;
}

Finally, we got this solved.

17

Re: SOGo problem with ActiveSync Outlook 2016

This happened to me with large mailboxes, I got it working with the following settings:

/etc/sogo/sogo.conf

SOGoMaximumPingInterval = 3540;
SOGoMaximumSyncInterval = 3540;
SOGoInternalSyncInterval = 60;
WOWatchDogRequestTimeout = 50;
SxVMemLimit = 2048;



/etc/nginx/conf.d/default.conf (https server section)

client_max_body_size 250m;
client_body_buffer_size 512k;
client_header_timeout 3540;
client_body_timeout 3540;
send_timeout 3540;



/etc/nginx/templates/sogo.tmpl

location ^~ /Microsoft-Server-ActiveSync {
    proxy_pass http://127.0.0.1:20000/SOGo/Microsoft-S … ctiveSync;
    proxy_redirect http://127.0.0.1:20000/Microsoft-Server-ActiveSync /;
    proxy_connect_timeout 3540;
    proxy_send_timeout 3540;
    proxy_read_timeout 3540;
    proxy_buffers 64 256k;
}

location ^~ /SOGo/Microsoft-Server-ActiveSync {
    proxy_pass http://127.0.0.1:20000/SOGo/Microsoft-S … ctiveSync;
    proxy_redirect http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync /;
    proxy_connect_timeout 3540;
    proxy_send_timeout 3540;
    proxy_read_timeout 3540;
    proxy_buffers 64 256k;
}


I know these are a bit high but I have successfully synced a mailbox with about 10000 items in outlook 2016.

18

Re: SOGo problem with ActiveSync Outlook 2016

I think this happens because Outlook tries to fetch many items at once and without the proper timeouts the sync will not work.


Check out https://lists.inverse.ca/sogo/arc/users … 00289.html

It seems that SOGo has SOGoMaximumSyncResponseSize setting to limit the response size.
This setting will make the initial sync slower but smoother.

If this works will eliminate the need for extra high timeouts, have not had the time to test it.

19

Re: SOGo problem with ActiveSync Outlook 2016

Changed everything to default iRedMail configuration added to /etc/sogo/sogo.conf :

  SOGoMaximumSyncWindowSize = 100;
  SOGoMaximumSyncResponseSize = 5172;

This limits Active Sync to maximum 100 items per sync request and maximum 5172kb per sync request (if you have an email with a 10mb attached it will sync only that email).


Now Outlook syncs works with no issues on large mailboxes.


If this settings are not set Outlook will try to fetch 500 items per request and sync will break because connection timeouts.

I recommend that these 2 setting be added to the next version of iRedMail by default.

20

Re: SOGo problem with ActiveSync Outlook 2016

Good catch. Thanks for sharing. smile

I will use and enable settings below in SOGo config file as default value:

  SOGoMaximumSyncWindowSize = 100;
  SOGoMaximumSyncResponseSize = 2048;