Z-Push: Setting Up an ActiveSync Server with Postfix (or How to Set Up Push Mail)
Introduction
Push server technology is very trendy nowadays, especially with the iPhone which now allows connections (just like Windows Mobile) to an Exchange-like push server. The problem is that for the open-source world, Exchange is not an option. I found a well-developed project on SourceForge called Z-Push that works perfectly with Postfix.
Installation
We’ll download the latest version from https://z-push.sourceforge.net and extract it to /var/www
:
|
|
Now we’ll apply the proper permissions:
|
|
Configuration
Apache
We need to configure Apache to redirect /Microsoft-Server-ActiveSync to /var/www/z-push/index.php. There are two options:
- Using alias:
|
|
- Using VirtualHost
Add this to your virtualhost configuration (/etc/apache2/sites-enabled/000-default
):
|
|
PHP
Now we need to make some modifications to your PHP configuration:
|
|
Restart the Apache server:
|
|
Z-Push
Now we just need to edit a few fields in the configuration:
|
|
Now, you just need to test your configuration by connecting to your server: http://
If you get a login/password prompt, enter your IMAP account credentials, and if you get this message, it means it’s working :-)
GET not supported
This is the z-push location and can only be accessed by Microsoft ActiveSync-capable devices.
FAQ
I have problems but don’t know where they’re coming from, how can I debug?
Simply create a debug file:
|
|
Last updated 24 Jul 2008, 08:12 CEST.