Just came across this cool piece of software:
z-push
Unfortunately this requires some extensive knowledge in php, linux, and Apache but if your comfortable it will work just fine. I've had it running for the past day and get instant notification of all emails.
Replies work great as well as it can be configured to use the default gmail smtp server.
To install on debian do the following:
I'm sure something similiar could be installed on a mac server but I'm not sure if it would work (Although I don't see why not)
This will at least tie me over until either gmail releases push or a more commercialized solution surfaces.
You can find cheap VPS hosts with debian for 5~7/month that will run this just fine.
z-push
Unfortunately this requires some extensive knowledge in php, linux, and Apache but if your comfortable it will work just fine. I've had it running for the past day and get instant notification of all emails.
Replies work great as well as it can be configured to use the default gmail smtp server.
To install on debian do the following:
Code:
> apt-get install apache2
> apt-get install php5
> apt-get install php5-imap
>apt-get install subversion
>cd /var/www/
>svn co svn://svn.berlios.de/z-push/trunk ./z-push
> nano /var/www/z-push/config.php
Change the settings to...
$BACKEND_PROVIDER = "BackendIMAP";
define('IMAP_SERVER', 'imap.gmail.com');
define('IMAP_PORT', 993);
define('IMAP_OPTIONS', '/notls/norsh/ssl');
> chmod 777 /var/www/z-push/state
> chmod 755 /var/www/z-push/state
> chown www-data:www-data /var/www/z-push/state
> nano /etc/apache2/httpd.conf
Add the following...
Alias /Microsoft-Server-ActiveSync /var/www/z-push/index.php
php_flag magic_quotes_gpc off
php_flag register_globals off
php_flag magic_quotes_runtime off
php_flag short_open_tag on
> touch /var/www/z-push/debug.txt
> chmod 777 /var/www/z-push/debug.txt
> sudo apt-get install php5-pear
> sudo pear install --alldeps Mail
> sudo aptitude install esmtp
> nano /etc/esmtprc
Change the settings to...
hostname smtp.gmail.com:587
username "username@gmail.com"
password "password"
starttls required
mda "/usr/bin/procmail -d %T"
> nano /etc/php5/apache2/php.ini
Change the settings to...
sendmail_path="/usr/bin/esmtp -t -i"
> mkdir ~/.authenticate
> chmod 0700 ~/.authenticate
> sudo aptitude install ca-certificates
> cp -a /etc/ssl/certs/ ~/.authenticate/ca
> chmod -R go-rwx ~/.authenticate/ca
> sudo apt-get install ssl-cert
> mkdir /etc/apache2/ssl
> make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.pem
> a2enmod ssl
> cp /etc/apache2/sites-available/default /etc/apache2/sites-available/ssl
> nano /etc/apache2/sites-available/ssl
Modify the start so it looks something like this...
NameVirtualHost *:443
<virtualhost *:443>
ServerAdmin webmaster@localhost
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pem
> nano /etc/apache2/sites-available/default
Modify the start so it looks something like this...
NameVirtualHost *:80
<virtualhost *:80>
> sudo a2ensite ssl
> nano /etc/apache2/ports.conf
Add the following line to it...
Listen 443
> /etc/init.d/apache2 reload
To test whether
your Apache setup is working correctly, you can simply type the Z-Push URL
in your browser, to see if apache is correctly redirecting your request to
z-push. You can simply use:
http://<serverip>/Microsoft-Server-ActiveSync
If correctly configured, you should see a username/password request, and
when you specify a valid username & password, you should see a string like
"Your device requested the Z-Push URL without the required GET parameters"
If not, then check your PHP and Apache settings.
Finally open your iphone and do the following:
Settings->Email->Add Account->Exchange
Email: account@gmail.com
Username: none\account@gmail.com
Password: gmail password
A popup will tell you it can validate. Hit cancel and it should ask for a server address ... enter your IP address/host name
Another pop-up will say it can't validate the certificate. Hit OK.
I'm sure something similiar could be installed on a mac server but I'm not sure if it would work (Although I don't see why not)
This will at least tie me over until either gmail releases push or a more commercialized solution surfaces.
You can find cheap VPS hosts with debian for 5~7/month that will run this just fine.