Hello. I am trying to setup Dovecot on an Alpha running FreeBSD 4.10. I am simply trying the imap/pop3 protocols at this time. But with both protocols the log message I get is: pop3-login: fd_send(5) failed: Bad file descriptor dovecot: child 275 (login) returned error 89 or imap-login: fd_send(5) failed: Bad file descriptor dovecot: child 275 (login) returned error 89 I have tried various combinations of: auth = default|plain|pam auth_userdb = passwd auth_passdb = passwd|shadow|pam|passwd-file but nothing works. What am I doing wrong? Thanks. Viren Patel University of Texas at Austin
Your auth_userdb and your auth_passdb need to be set to something Dovecot can read. For example: auth = plain digest-md5 <-- (This should be space seperated not | seperated) auth_userdb passwd-file /path/to/passwd/file auth_passdb passwd-file /path/to/passwd/file Let me know if that helps. Viren Patel wrote:>Hello. I am trying to setup Dovecot on an Alpha running FreeBSD >4.10. I am simply trying the imap/pop3 protocols at this time. But >with both protocols the log message I get is: > > pop3-login: fd_send(5) failed: Bad file descriptor > dovecot: child 275 (login) returned error 89 > >or > > imap-login: fd_send(5) failed: Bad file descriptor > dovecot: child 275 (login) returned error 89 > >I have tried various combinations of: > > auth = default|plain|pam > auth_userdb = passwd > auth_passdb = passwd|shadow|pam|passwd-file > >but nothing works. What am I doing wrong? Thanks. > >Viren Patel >University of Texas at Austin > >
On Thu, 2004-07-22 at 17:38, Viren Patel wrote:> Hello. I am trying to setup Dovecot on an Alpha running FreeBSD > 4.10. I am simply trying the imap/pop3 protocols at this time. But > with both protocols the log message I get is: > > pop3-login: fd_send(5) failed: Bad file descriptor > dovecot: child 275 (login) returned error 89Hmm. Yet another problem with fd_send().. Code in src/lib/fdpass.c isn't working right with your system. This is a bit difficult to fix without access to the system since I can only guess what could go wrong. Does FreeBSD define CMSG_LEN, CMSG_SPACE and CMSG_ALIGN macros somewhere under /usr/include/? What are they? How is "struct cmsghdr" defined? -------------- 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/20040722/118c0e12/attachment-0001.bin>
> On Thu, 2004-07-22 at 20:35, Viren Patel wrote: >> Hope this helps. Should I send the entire socket.h file? > > Hmm. What would happen if in src/lib/fdpass.c you added: > > #undef CMSG_LEN > #undef CMSG_DATA > > #define CMSG_LEN(l) (sizeof(struct cmsghdr) + (l)) > #define CMSG_DATA(cmsg) ((u_char *)(cmsg) + sizeof(struct cmsghdr)) > >Yes! This did the trick. It seems to be working fine now. Thanks for your help. I can now go on to further testing and imaps/pop3s. I am seriously looking at Dovecot for our production mail server. Viren Patel University of Texas at Austin