Tim writes:
>> * Do an ldd on the binary. See what dynamic libraries are being loaded.
>
> % ldd /usr/local/www/cgi-bin/sqwebmail
> /usr/local/www/cgi-bin/sqwebmail:
> libcrypt.so.2 => /usr/lib/libcrypt.so.2 (0x280a2000)
> libc.so.3 => /usr/lib/libc.so.3 (0x280b7000)
>
>> * Verify that login caching is set up correctly. Sounds like you don't have
>> the login cache properly set up. This will result in a fallback of EVERY
>> request getting authenticated against whatever you're using for
>> authentication.
>
> I think it's setup OK - see below. Also, initially I had setup sqwebmail
> withOUT login caching and then I got the slowness complaint, so I set it
> up WITH login caching and had the same problem.
>
> Thanks,
>
> Tim
>
> % sudo ls -alR /var/run/sqwebmail
> total 3
> drwxr-xr-x 3 bin wheel 512 Jul 16 19:06 .
> drwxr-xr-x 4 root wheel 512 Jul 16 19:01 ..
> drwx------ 3 bin wheel 512 Jul 16 19:06 138240
>
> /var/run/sqwebmail/138240:
> total 3
> drwx------ 3 bin wheel 512 Jul 16 19:06 .
> drwxr-xr-x 3 bin wheel 512 Jul 16 19:06 ..
> drwx------ 2 bin wheel 512 Jul 16 19:06 ti
>
> /var/run/sqwebmail/138240/ti:
> total 3
> drwx------ 2 bin wheel 512 Jul 16 19:06 .
> drwx------ 3 bin wheel 512 Jul 16 19:06 ..
> -rw------- 1 bin wheel 67 Jul 16 19:18 tim.authpwd
>
> % ls -ld /usr/local/www/cgi-bin/sqwebmail
> -rwsr-xr-x 1 root wheel 270212 Jul 16 19:06
> /usr/local/www/cgi-bin/sqwebmail
>
> % sudo more /var/run/sqwebmail/138240/ti/tim.authpwd
> 1000 1000 /usr/home/tim/Maildir
> AUTHADDR=tim
> AUTHFULLNAME=Tim
Double check that you should really be using authpwd. Authpwd is for
password in /etc/passwd file, which almost nobody uses anymore, although I
can't see how you'd be able to authenticate if this is wrong.
--
Sam