Kim Johansen - 2014-03-02 20:09:

> - but I have had success with using a bash script instead of a PHP
script, with a smaller foodprint as Jeroen suggested.
> So I think that is the solution is to rewrite the script to bash script.

Some time ago I tried to get postlogin PHP script working without
success (i don't remember what exactly was the problem though). What I
did, was make postlogin shell script calling postlogin PHP script via
exec. Something like this:

#!/bin/sh
set > /tmp/dovecot-environment
echo "$@" > /tmp/dovecot-args
exec /data/etc/dovecot/postlogin.php > /dev/null 2>&1 &
exec "$@"

This worked.

MU


Attachment: smime.p7s
Description: Kryptograficzna sygnatura S/MIME

Reply via email to