Jump to content


Z-Push open sources Server Activesync

- - - - -

29 replies to this topic

#1
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 32,925 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:Galaxy Nexus / TF Prime
  • Twitter:@paulobrien
Here's something REALLY cool...

Quote

Posted Image
Z-Push ... is an implementation of Microsoft's ActiveSync protocol which is used 'over-the-air' for multi platform active sync devices, including Windows Mobile and active sync used on Ericsson and Nokia phones. Open source Z-Push enables any PHP-based groupware package to become fully syncable with any ActiveSync-compliant device.

Being an opensource project under the GPL, it allows developers to add their own backend so that Z-Push can communicate with their groupware solution.

Currently, Z-Push is available with only four backends: the IMAP and the maildir backend for e-mail synchronisation, the vCard backend for contact synchronisation and one for the commercial Zarafa package which is sold by allowing full synchronization of E-mail, Calendar and Contacts. We expect that other backends arise in the near future as the opensource community gets to grips with the new possibilities.
So what does this mean? To see what Z-Push was all about, I installed it on my test server. It's PHP, and I simply uploaded the directory to my server, tweaked the config file, added the required .htaccess and it was ready to rock. It's recommended that Z-Push points at an IMAP server on the same box, but I thought i'd do something a bit different, so I pointed it to GMail's IMAP servers :D

The result? Exchange Server ActiveSync Push GMail! It worked straight away, and synced my mails. But did push work? To find out, I sent an email from my main email account to my gmail account. From hitting 'Send' in Outlook to the mail appearing on my device took 11 SECONDS! I'd say it worked :)

If you're looking to hook Server ActiveSync Push Technology into your groupware, then z-push is well worth a look!

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.

Posted Image


#2
sjeemsnl

sjeemsnl

    Newbie

  • Members
  • Pip
  • 15 posts
  • Gender:Male
  • Location:Netherlands
  • Devices:HTC Touch, Qtek 9090

View PostPaul (MVP), on Feb 8 2008, 13:37, said:

Here's something REALLY cool...
So what does this mean? To see what Z-Push was all about, I installed it on my test server. It's PHP, and I simply uploaded the directory to my server, tweaked the config file, added the required .htaccess and it was ready to rock. It's recommended that Z-Push points at an IMAP server on the same box, but I thought i'd do something a bit different, so I pointed it to GMail's IMAP servers :)

The result? Exchange Server ActiveSync Push GMail! It worked straight away, and synced my mails. But did push work? To find out, I sent an email from my main email account to my gmail account. From hitting 'Send' in Outlook to the mail appearing on my device took 11 SECONDS! I'd say it worked :D

If you're looking to hook Server ActiveSync Push Technology into your groupware, then z-push is well worth a look!

P

Hey there Paul this sounds very nice..
Any hints on what to config in the configs..
I just could not figure it out just now.. Might be my fault and I'd better look in the morning or the docs arent clear...
Erm and I was pointing at the GMail imap settings :D

hope you can help :D

grtz,
Sjeems


#3
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 32,925 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:Galaxy Nexus / TF Prime
  • Twitter:@paulobrien
Voila! My config...

// The data providers that we are using (see configuration below)

$BACKEND_PROVIDER = "BackendIMAP";



// ************************

// BackendIMAP settings

// ************************



// Defines the server to which we want to connect

// recommended to use local servers only

define('IMAP_SERVER', 'imap.gmail.com');

// connecting to default port (143)

define('IMAP_PORT', 993);

// best cross-platform compatibility (see http://php.net/imap_open for options)

define('IMAP_OPTIONS', '/notls/norsh/ssl');

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.

Posted Image


#4
sjeemsnl

sjeemsnl

    Newbie

  • Members
  • Pip
  • 15 posts
  • Gender:Male
  • Location:Netherlands
  • Devices:HTC Touch, Qtek 9090
Wow
that's what I would like to call good service :)

Now lets hope our providers will do the same here in holland I we ask them for some info :D

thanks paul, Im going to try it now! Will post results!!

grtz,
Sjeems


#5
sjeemsnl

sjeemsnl

    Newbie

  • Members
  • Pip
  • 15 posts
  • Gender:Male
  • Location:Netherlands
  • Devices:HTC Touch, Qtek 9090
Mmmm I used to be living a .Net and so Microsoft programmers life...and this Debian server won't forgive me :)
I'll try later.. Might have some luck with some help from friends, and hey I might learn some things :D
Darn I was happy about this.. :D


thanks!

grtz
Sjeems

Edited by sjeemsnl, 09 February 2008 - 12:30 AM.


#6
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 32,925 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:Galaxy Nexus / TF Prime
  • Twitter:@paulobrien
Don't forget you need php-imap (apt-get install php-imap IIRC).

Check out dotdeb while you're at it too, awesome :)

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.

Posted Image


#7
rthomas

rthomas

    Newbie

  • Members
  • Pip
  • 1 posts
I have uploaded it to my root, but being a noob I am not sure about the settings for config.php and cant even find the httpd.conf file. Anyone like to expand on the installation help file for an idiot like me :)

Thanks


#8
touficjohn

touficjohn

    Regular

  • Members
  • PipPip
  • 104 posts
Hmm this would be fantastic!
Though is there a way of adding more than one exchange server in activesync?


#9
Monolithix

Monolithix

    Members

  • Members
  • PipPipPipPipPipPip
  • 8,781 posts
Nope...WM can currently only support one exchange server at a time...

I still exist


#10
touficjohn

touficjohn

    Regular

  • Members
  • PipPip
  • 104 posts
Its fantastic!
I set up z-push on my server (took less than 10mins).
Got the WM5 emulator from the M$ website. E-mails (not stored locally) arrived in seconds!!!!
If only there was a way to be able to sync with more than one exchange server at a time! Surely there has got to be some sort of workaround?

Edited by touficjohn, 15 February 2008 - 02:06 AM.


#11
PayableOnDeath

PayableOnDeath

    CompTIA A+ Certified

  • Members
  • PipPipPipPip
  • 346 posts
  • Location:Bournemouth
  • Devices:HTC Desire Z, T-Mobile G1
after much playing around i managed to get php recompiled right so that Z-push would work and its working great  :)

View Posttouficjohn, on Feb 15 2008, 02:05, said:

If only there was a way to be able to sync with more than one exchange server at a time! Surely there has got to be some sort of workaround?

I hope someone would be able to sort that as it would be very use full  :D

Phones:
Nokia 5210 > 3210 > 3100 > SPV C500 >O2 XDA1(Only Used in Car For Sat Nav) > MDA Vario > MDA Vario II > T-Mobile G1 > Nokia N900 > HTC Desire Z

#12
Mr.Clark

Mr.Clark

    Diehard

  • MoDaCo Plus
  • PipPipPipPip
  • 314 posts
  • Gender:Male
  • Location:UK
  • Devices:Nexus S, Eee Transformer

View PostMonolithix, on Feb 14 2008, 10:55, said:

Nope...WM can currently only support one exchange server at a time...
Ah, so if you currently have an ActiveSync Exchange account AND a Gmail IMAP account, you can't turn the Gmail one into a second Push account?

Dang.

Novus Ordo Mundi

#13
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 32,925 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:Galaxy Nexus / TF Prime
  • Twitter:@paulobrien
Sadly not!

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.

Posted Image


#14
PayableOnDeath

PayableOnDeath

    CompTIA A+ Certified

  • Members
  • PipPipPipPip
  • 346 posts
  • Location:Bournemouth
  • Devices:HTC Desire Z, T-Mobile G1
anyone getting a problem where it Marks Every email as read?

its sending to the phone fine, with sec's of the email how ever its not notifying me of the new email and marks it as been read :S

Phones:
Nokia 5210 > 3210 > 3100 > SPV C500 >O2 XDA1(Only Used in Car For Sat Nav) > MDA Vario > MDA Vario II > T-Mobile G1 > Nokia N900 > HTC Desire Z

#15
Leaskovski

Leaskovski

    Regular

  • Members
  • PipPip
  • 132 posts
  • Location:Here
Ive got a question about this.

Is the gmail account settings set for the server or is it still set on the phone?
I see that you have to tell the server that you are using IMAP and the gmail server names.

The reason for asking is...  could you in theory have 1 server that is setup for gmail and then have multiple users using that server to get their gmail via push?


#16
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 32,925 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:Galaxy Nexus / TF Prime
  • Twitter:@paulobrien
You pass the credentials in as normal.

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.

Posted Image


#17
Leaskovski

Leaskovski

    Regular

  • Members
  • PipPip
  • 132 posts
  • Location:Here
Interesting!

Well i got an ubuntu desktop machine up and running last night and got Apache and Php running on it.  I got it working according to their pdf install doc, but the imap stuff isnt pulling yet.  I think i need to install php-imap, but it got past my bed time.

My theory is that someone should set a server up for gmail imap and then make it public for free :D

Somehow i dont think my sky dsl connection would handle it very well for a public one :(


#18
PayableOnDeath

PayableOnDeath

    CompTIA A+ Certified

  • Members
  • PipPipPipPip
  • 346 posts
  • Location:Bournemouth
  • Devices:HTC Desire Z, T-Mobile G1

View PostLeaskovski, on Mar 27 2008, 09:27, said:

Interesting!

Well i got an ubuntu desktop machine up and running last night and got Apache and Php running on it.  I got it working according to their pdf install doc, but the imap stuff isnt pulling yet.  I think i need to install php-imap, but it got past my bed time.

My theory is that someone should set a server up for gmail imap and then make it public for free :(

Somehow i dont think my sky dsl connection would handle it very well for a public one :D

yes you need imap, php-imap and compile php with imap support

could do a public one but as word go around am sure the bandwidth bills would go through the roof  :(

Phones:
Nokia 5210 > 3210 > 3100 > SPV C500 >O2 XDA1(Only Used in Car For Sat Nav) > MDA Vario > MDA Vario II > T-Mobile G1 > Nokia N900 > HTC Desire Z

#19
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 32,925 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:Galaxy Nexus / TF Prime
  • Twitter:@paulobrien
Check out dotdeb.

Add their repositories, the installing the latest and greatest of all the bits you need is a piece of cake! apt-get php-imap = job done :D

(/me loves dotdeb so much he's donated)

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.

Posted Image


#20
Leaskovski

Leaskovski

    Regular

  • Members
  • PipPip
  • 132 posts
  • Location:Here
Hmm, seen as Gmail got into bed with the apple and iphone guys, they should set one of these badgers up on their servers :D  I wish!

Speaking of gmail imap, how does it handle all the funky folders/labels and stuff?





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users