简单写写怎么搞,用的是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;
}