Hi,
For php 5.2, i did this on a 7.5.1-smeserver (after install of the php5-contrib (then is was 5.2)) :
For php 5.2, one can use the mapi-files of the opensuse-10.2-tar.gz (if you have windows, use 7-zip to extract zcp-6.40.*-suse-10.2-i586-free.tar, after that : zarafa-6.40.*.i586.rpm, after that extract zarafa-6.40.*.cpio.bz2 and then zarafa-6.40.*.cpio).
You get 3 directories : /etc /usr /var
copy /usr/lib/php5/extensions/mapi.so to /usr/lib/php5/ on your smeserver 7.5.1
copy /usr/share/php/mapi/*-files to the /usr/share/php/mapi/-directory of your smeserver 7.5.1
For php 5.3, i expect you can use the mapi-files of a distribution that uses standard php5.3 (didn't test it)
Change /etc/e-smith/templates/etc/php5/php.ini/40DataHandling :
magic_quotes_gpc = Off
expand-template /etc/php5/php.ini
cp /etc/php.d/zarafa.ini /etc/php5/php5.d/zarafa.ini
mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/
pico /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/90zarafa
In 90zarafa, put :
<Directory /usr/share/zarafa-webaccess>
AddHandler php5-cgi .php
Action php5-cgi /php5-cgi/php-cgi
</Directory>
<Directory /usr/share/zarafa-webaccess-mobile>
AddHandler php5-cgi .php
Action php5-cgi /php5-cgi/php-cgi
</Directory>
expand-template /etc/httpd/conf/httpd.conf
httpd -t
svc -t /service/httpd-e-smith