Hi there, I got dovecot compiled and running on HP-UX 11.23. It's using LDAPUX and PAM for authentication. So far, it works. But after logging in the connection is closed immediately. It looks like this: telnet <ip> 143 Connected to ... Escape character is '^]'. * OK Dovecot ready. a01 login <user> <pass> Connection closed by foreign host. The dovecot log says: Error: imap-login: fd_send(7) failed: Bad file number Error: child 22629 (login) returned error 89 As far as I can see, the problem seems to reside in dovecot's fdpass.c... dovecot version: 1.0.3 gcc version: 2.9 Any ideas or solutions? Thanks in advance, Matthias
On Thu, 2007-08-09 at 15:55 +0200, Matthias Luehr wrote:> Error: imap-login: fd_send(7) failed: Bad file number > Error: child 22629 (login) returned error 89 > > > As far as I can see, the problem seems to reside in dovecot's fdpass.c...Dovecot's fd_send() probably doesn't work right with HP-UX. Unfortunately I've no idea why not, and if it's even supposed to work with HP-UX. Hmm. Did configure say: checking whether fd passing works... yes -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070809/8e2d0379/attachment-0002.bin>
> On Thu, 2007-08-09 at 15:55 +0200, Matthias Luehr wrote: >> Error: imap-login: fd_send(7) failed: Bad file number >> Error: child 22629 (login) returned error 89 >> >> >> As far as I can see, the problem seems to reside in dovecot's >> fdpass.c... > > Dovecot's fd_send() probably doesn't work right with HP-UX. > Unfortunately I've no idea why not, and if it's even supposed to work > with HP-UX. > > Hmm. Did configure say: > > checking whether fd passing works... yes >Yes. And from config.log: configure:26621: checking whether fd passing works configure:26694: gcc -o conftest -std=gnu99 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function -cast -D_XOPEN_SOURCE_EXTENDED -I./src/lib ./src/lib/fdpass.c conftest.c >&5 configure:26697: $? = 0 configure:26703: ./conftest configure:26706: $? = 0 configure:26735: result: yes