1 (edited by lordhelmet 2017-03-03 21:55:15)

Topic: Android cointinously pings SOGo

==== Required information ====
- iRedMail version 0.9.5
- Linux/BSD distribution name and version: Ubuntu 14.04
- Store mail accounts in which backend: simple
- Web server apache
- Manage mail accounts with iRedAdmin-Pro? no
- Related log if you're reporting an issue: var/log/sogo
====

Hy!
I have set up my i9505 smartphone with samsung original (Lollipop) firmware and I have battery drain. I deactivated all sync except SogO Mail Sync. I have these pings from the smartphone:

Mar 03 14:41:43 sogod [2175]: |SOGo| request took 0.004732 seconds to execute
Mar 03 14:41:43 sogod [2175]: x.x.x..1 "POST /SOGo/Microsoft-Server-ActiveSync?Cmd=Ping&User=xxx%xxx.xxx.io&DeviceId=SEC155F957B387BE&DeviceType=SAMSUNGGTI9505 HTTP/1.1" 200 13/0 0.006 - - 0
Mar 03 14:41:44 sogod [2175]: |SOGo| starting method 'POST' on uri '/SOGo/Microsoft-Server-ActiveSync?Cmd=Ping&User=p%40xxxxx.xxx&DeviceId=SECxxx7B387BE&DeviceType=SAMSUNGGTI9505'
Mar 03 14:41:44 sogod [2175]: <0x0x7f6ab6cae6a8[SOGoActiveSyncDispatcher]> EAS - Empty Ping request - using cached HeatbeatInterval (10)
Mar 03 14:41:44 sogod [2175]: <0x0x7f6ab6cae6a8[SOGoActiveSyncDispatcher]> EAS - Empty Ping request - using cached folders ("vevent%2F3493-56E2D080-1-5DD8DB00", "vevent%2F42D4-56E26C80-1-1D516680")
Mar 03 14:41:44 sogod [2175]: <0x0x7f6ab6cae6a8[SOGoActiveSyncDispatcher]> EAS - response for device SEC155F957B387BE: <?xml version="1.0"?>
<!DOCTYPE ActiveSync PUBLIC "-//MICROSOFT//DTD ActiveSync//EN" "http://www.microsoft.com/">
<Ping xmlns="Ping:">
 <Status>1</Status>
</Ping>

Strange thing is, they run continously, approx. 1.4 pings per second:
Mar 03 14:41:43 ..request took 0.004732 seconds to execute
Mar 03 14:41:42 ..request took 0.004338 seconds to execute


So I assume thats causing battery drain on my smartphone.

Is there a way to regulate this behaviour?

thx!

----

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

2

Re: Android cointinously pings SOGo

What are the values of parameters below in /etc/sogo/sogo.conf?

SOGoMaximumPingInterval
SOGoMaximumSyncInterval
SOGoInternalSyncInterval

It's supposed to be long to avoid battery draining in this case.

3

Re: Android cointinously pings SOGo

SOGoMaximumPingInterval = 10;
SOGoMaximumSyncInterval = 600;
SOGoInternalSyncInterval = 30;

4

Re: Android cointinously pings SOGo

Why not use default values set by iRedMail? Improper interval will cause battery draining on mobile devices.

Default value for SOGoMaximumPingInterval and SOGoMaximumSyncInterval are 3540. Also, Apache ProxyPass timeout is 3540 for '/Microsoft-Server-ActiveSync'.

5

Re: Android cointinously pings SOGo

ok, thx, will try