Warning: Constant ABSPATH already defined in /home/httpd/vhosts/supercloud.ch/apfelschwein.net/wp-config.php on line 21 Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/supercloud.ch/apfelschwein.net/wp-config.php:21) in /home/httpd/vhosts/supercloud.ch/apfelschwein.net/wp-includes/rest-api/class-wp-rest-server.php on line 1794 Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/supercloud.ch/apfelschwein.net/wp-config.php:21) in /home/httpd/vhosts/supercloud.ch/apfelschwein.net/wp-includes/rest-api/class-wp-rest-server.php on line 1794 Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/supercloud.ch/apfelschwein.net/wp-config.php:21) in /home/httpd/vhosts/supercloud.ch/apfelschwein.net/wp-includes/rest-api/class-wp-rest-server.php on line 1794 Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/supercloud.ch/apfelschwein.net/wp-config.php:21) in /home/httpd/vhosts/supercloud.ch/apfelschwein.net/wp-includes/rest-api/class-wp-rest-server.php on line 1794 Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/supercloud.ch/apfelschwein.net/wp-config.php:21) in /home/httpd/vhosts/supercloud.ch/apfelschwein.net/wp-includes/rest-api/class-wp-rest-server.php on line 1794 Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/supercloud.ch/apfelschwein.net/wp-config.php:21) in /home/httpd/vhosts/supercloud.ch/apfelschwein.net/wp-includes/rest-api/class-wp-rest-server.php on line 1794 Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/supercloud.ch/apfelschwein.net/wp-config.php:21) in /home/httpd/vhosts/supercloud.ch/apfelschwein.net/wp-includes/rest-api/class-wp-rest-server.php on line 1794 Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/supercloud.ch/apfelschwein.net/wp-config.php:21) in /home/httpd/vhosts/supercloud.ch/apfelschwein.net/wp-includes/rest-api/class-wp-rest-server.php on line 1794 {"id":225,"date":"2011-11-05T00:52:57","date_gmt":"2011-11-04T22:52:57","guid":{"rendered":"http:\/\/www.apfelschwein.net\/?p=225"},"modified":"2011-11-06T12:42:18","modified_gmt":"2011-11-06T10:42:18","slug":"activesync-mit-z-push-und-courier-imap","status":"publish","type":"post","link":"https:\/\/www.apfelschwein.net\/activesync-mit-z-push-und-courier-imap.html","title":{"rendered":"ActiveSync mit Z-Push und Courier IMAP"},"content":{"rendered":"
Immer wieder fragen Kunden nach ActiveSync Unterst\u00fctzung f\u00fcr ihre Mailbox. Bis anhin musste ich immer sagen: „Das wird leider nicht unterst\u00fctzt“.<\/p>\n
Doch heute Abend bin ich \u00fcber Z-Push<\/a> gestolpert und hab‘ das mal ausprobiert. Hier ist eine ganz kurze und rudiment\u00e4re Installationsanleitung (und hier ist die Originalanleitung<\/a>): Einige Tipps habe ich \u00fcbrigens von diesem Artikel<\/a>.<\/p>\n Mir pers\u00f6nlich passt nicht so, dass das state Directory und das Debug-Logfile debug.txt innerhalb des Apache Document Roots liegen. Deshalb verschiebe ich das nach ausserhalb.<\/p>\n In der config.php gibt es zus\u00e4tzlich folgende \u00c4nderung:<\/p>\n Nat\u00fcrlich muss das Directory auch noch erstellt werden:<\/p>\n Damit das Debug Logfile nach In der Funktion debugLog folgende Zeile \u00e4ndern:<\/p>\n und das Directory inklusive File erstellen:<\/p>\n Damit das Logfile nicht irgendwann die Platte f\u00fcllt, sollte man sich \u00fcberlegen logrotate entsprechend zu konfigurieren.<\/p>\n Nun kann man endlich das iPhone f\u00fcr ActiveSync konfigurieren<\/a>. Autodiscover ist momentan noch nicht verf\u00fcgbar. Das werde ich in einem n\u00e4chsten Schritt aktivieren.<\/p>\n
\n1. Tarball in Verzeichnis \/var\/www\/z-push entpacken
\n2. Die config.php anpassen:<\/p>\n\n
\n
\n
define('IMAP_SERVER', 'localhost');<\/code>
<\/code><\/li>\n
define('IMAP_PORT', 143);<\/code>
<\/code><\/li>\n
define('IMAP_OPTIONS', '\/notls\/norsh');<\/code><\/li>\n<\/ul>\n
\n
define('IMAP_SERVER', 'remote.server.net');<\/code><\/li>\n
define('IMAP_PORT', 143);<\/code><\/li>\n
define('IMAP_OPTIONS', '\/norsh\/
novalidate-cert<\/code>'); # falls das Zertifikat self-signed oder sonstwie nicht trusted ist<\/code><\/li>\n
define('IMAP_SERVER', 'remote.server.net');<\/code><\/li>\n
define('IMAP_PORT', 993);<\/code><\/li>\n
define('IMAP_OPTIONS', '\/notls\/norsh\/
novalidate-cert')<\/code>; # falls das Zertifikat self-signed oder sonstwie nicht trusted ist<\/code><\/li>\n<\/ul>\n<\/ul>\n
backend\/ics.php<\/code> nach
backend\/unused\/ics.php<\/code> verschieben (wird nicht ben\u00f6tigt. Directory
unused<\/code> muss vorher erstellt werden).<\/li>\n
\n<Directory \/var\/www\/z-push><\/code>
\nphp_flag magic_quotes_gpc off<\/code>
\nphp_flag register_globals off<\/code>
\nphp_flag magic_quotes_runtime off<\/code>
\nphp_flag short_open_tag on<\/code>
\n<\/Directory><\/code>
\nAlias \/Microsoft-Server-ActiveSync \/var\/www\/z-push\/index.php<\/code><\/li>\n<\/ul>\n
\n
\n
define('STATE_DIR', '\/var\/lib\/zpush-state');<\/code><\/li>\n<\/ul>\n
\n
mkdir \/var\/lib\/zpush-state && chown www-data:www-data \/var\/lib\/zpush-state<\/code><\/li>\n<\/ul>\n
\/var\/log\/zpush\/debug.log<\/code> schreibt, braucht es folgende \u00c4nderung in der Datei debug.php:<\/p>\n
\n
@$fp = fopen('\/var\/log\/zpush\/debug.log', \"a\");<\/code><\/li>\n<\/ul>\n
\n