Petri Riihikallio wrote:
1) authdaemond wasn't running because you didn't use
/usr/lib/sqwebmail/libexec/sqwebmaild.rc start
2) File permissions weren't set properly.
As for #1, i did start the daemon:
r# ps aux | grep sq
root 394 0.0 0.0 1656 412 ? S Aug11 0:00
/usr/sbin/courierlogger -pid=/var/run/courier/authdaemon/pid -start
/usr/lib/courier/authlib/authdaemond.pgsql
root 395 0.0 0.0 3120 668 ? S Aug11 0:00
/usr/lib/courier/authlib/authdaemond.pgsql
root 407 0.0 0.1 3224 1220 ? S Aug11 0:03
/usr/lib/courier/authlib/authdaemond.pgsql
root 408 0.0 0.1 3224 1220 ? S Aug11 0:03
/usr/lib/courier/authlib/authdaemond.pgsql
root 409 0.0 0.1 3224 1192 ? S Aug11 0:03
/usr/lib/courier/authlib/authdaemond.pgsql
root 410 0.0 0.1 3224 1132 ? S Aug11 0:03
/usr/lib/courier/authlib/authdaemond.pgsql
root 411 0.0 0.1 3224 1132 ? S Aug11 0:03
/usr/lib/courier/authlib/authdaemond.pgsql
postgres 462 0.0 0.1 8800 1000 ? S Aug11 0:07
/usr/lib/postgresql/bin/postmaster
I can't see sqwebmaild running. How about "ps aux | grep sqw" to
prune out sql-entries?
As for #2... I checked the suggested places... and did a suid for the
cgi executable... but this had no effect.
Do not make it suid. Apache won't run it. It just needs to be
executible by the Apache daemon (usually r-xr-xr-x).
You're right... sqwebmaild isn't running... even though its pid file
reports there is a process... it isn't running. ps aux | grep sqw also
returns nothing... I tried running
/usr/lib/sqwebmail/libexec/sqwebmaild.rc start again but still a no go.
I got no error warnings however, and I checked /var/log/messages and
there was nothing pertinent there either.
So I tried to start it manually, and got the following error message:
./sqwebmaild: error while loading shared libraries: libpcre.so.0: cannot
open shared object file: No such file or directory
But the library exists:
# locate libpcre.so.0
/usr/local/lib/libpcre.so.0
/usr/local/lib/libpcre.so.0.0.1
I tried linking (ln) the file to the current directory but it still
complains... I think this is simply a path issue and one reason for the
rc script in the first place. In any case, I'm still stumped :(
Is there an error log somewhere for sqwebmail? Do you have any ideas on
how to procede?
Oh, and I changed the cgi executeable permissions back, thanks for the
info :)