[Dovecot] Dovecot auth problem on FreeBSD 4.10

Timo Sirainen tss at iki.fi
Thu Jul 22 21:53:53 EEST 2004


On Thu, 2004-07-22 at 21:47, Viren Patel wrote:
> > 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.

OK, this seems to be a bug in FreeBSD then. The header files define the
alignmentation with size_t so it gets to be 64bit, but kernel expects
alignmentation to be 32bit.

Want to report it to FreeBSD people? I guess I could too.

-------------- 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/3346498e/attachment-0001.bin>


More information about the dovecot mailing list