https://github.com/fmbiete/Z-Push-contrib
问题来了,有人部署过Z-Push吗,有没有什么明显的缺点?看了下他的网站,和iphone几乎全兼容。
1
archean 2014-12-31 21:45:02 +08:00
看起来不错,试试看。
|
2
pfitseng OP 今天折腾了一下,没成功。。。
|
3
pfitseng OP 简单写写怎么搞,用的是fastmail
系统debian7 主要要装php5-imap libawl-php php-soap php.ini里改 max_execution_time=600 short_open_tag=On include_path = "/usr/share/awl/inc" Z-Push-contrib/config.php 参照文档 define('USE_FULLEMAIL_FOR_LOGIN', true); 允许全名登录 define('BACKEND_PROVIDER', 'BackendIMAP');只用imap后端 另外 /var/log/z-push/ /var/lib/z-push/ 这2个目录给php的写权限 Z-Push-contrib/backend/imap/config.php参照文档 改这个让它能发信 define('IMAP_SMTP_METHOD', 'smtp'); $imap_smtp_params = array('host' => 'ssl://mail.messagingengine.com', 'port' => 465, 'auth' => true, 'username' => 'imap_username', 'password' => 'imap_password'); nginx配置,也可以参照它的,我就直接放到已有的域名下面了,省得再买张证书 location /Microsoft-Server-ActiveSync { alias /data/www/Z-Push-contrib/; } location ~ ^/Microsoft-Server-ActiveSync { alias /data/www/Z-Push-contrib/index.php; include /etc/nginx/fastcgi_params; fastcgi_index index.php; fastcgi_param HTTPS on; fastcgi_param SCRIPT_FILENAME $request_filename; fastcgi_pass unix:/var/run/php5-fpm.sock; # Z-Push Ping command will be alive for 470s, but be safe fastcgi_read_timeout 630; } |
4
pfitseng OP 差点忘了,这个不改过不了验证
define('IMAP_OPTIONS', '/ssl'); |