Egroupware z-push

Ubuntu 18.04

Anyone knows how to make z-push work with egroupware? i cant figure out the steps for the autodiscover settings eventually i got stuck,

zpush logging the following:

07/07/2018 14:12:16 [ 2634] [FATAL] [unknown] FatalException: Requested the Z-Push URL without the required GET parameters - code: 0 - file: /home/in-cloud/public_html/egroup/activesync/vendor/z-push/z-push/src/index.php:78 07/07/2018 14:12:16 [ 2634] [FATAL] [unknown] Exception: (FatalException) - Requested the Z-Push URL without the required GET parameters

this was tested with the microsoft activesync testing tool.

My mobile devices do not even bother connecting to the server, some how.

any help would be appreciated.

Status: 
Closed (fixed)

Comments

Howdy -- thanks for contacting us!

I unfortunately don't know much about using z-push, though I do see after some Googling that there can be some issues with redirects. You could always ensure that there aren't any redirects occurring with that URL.

Also, I see that in some cases with some software, there can be trouble using z-push with CGI/FCGID mode. You might try switching to mod_php just to see if it helps, but I ran into this suggestion here which explained how to setup a redirect that can help solve z-push issues:

https://forum.kopano.io/topic/275/z-push-web-hosted-with-cpanel-don-t-work

Nice one, "pushed" me to the right direction.

you have to add an .htaccess file in the active sync folder of egroupware. with the folowing rule:

RewriteEngine on RewriteRule .* - [E=HTTP_MS_ASPROTOCOLVERSION:%{HTTP:Ms-Asprotocolversion}] RewriteRule .* - [E=HTTP_X_MS_POLICYKEY:%{HTTP:X-Ms-Policykey}] RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

after that in a separate .htacces file on the root of your webfolder. you add:

RewriteEngine on RewriteBase /

RewriteRule Microsoft-Server-ActiveSync(.) /egroup/activesync/index.php$1 [E=ACTIVESYNC:true,E=REMOTE_USER:%{HTTP:Authorization}] RewriteRule Autodiscover/Autodiscover.xml(.) /egroup/activesync/index.php$1 [E=ACTIVESYNC:true,E=REMOTE_USER:%{HTTP:Authorization}] RewriteRule AutoDiscover/AutoDiscover.xml(.) /egroup/activesync/index.php$1 [E=ACTIVESYNC:true,E=REMOTE_USER:%{HTTP:Authorization}] RewriteRule autodiscover/autodiscover.xml(.) /egroup/activesync/index.php$1 [E=ACTIVESYNC:true,E=REMOTE_USER:%{HTTP:Authorization}]

and that is basically it.

After this it started working, i have still separate issue with outlook, with an fatal error. But it connects also so it is not related to this.

Excellent, I'm glad to hear this is working for you now, thanks for letting us know how you fixed it!

Status: Fixed ยป Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.