[Dovecot] running postlogin script result in libgcc_s.so.1 must be installed for pthread_cancel to work

Maciej Uhlig maciej.uhlig at us.edu.pl
Sun Mar 2 19:49:49 UTC 2014


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3354 bytes
Desc: Kryptograficzna sygnatura S/MIME
URL: <http://dovecot.org/pipermail/dovecot/attachments/20140302/fe9f7d62/attachment.p7s>


More information about the dovecot mailing list