Subject: Latest dovecot package completely broken
To: None <>
From: Jared D. McNeill <>
List: current-users
Date: 06/14/2006 08:41:00
I've been having issues with dovecot lately, so I decided to upgrade to 
the latest version available in pkgsrc (1.0 beta9). After building and 
installing, the application failed to start. I forget the exact error 
strings, but something like 'socket() failed' followed by 'listen(993) 

Dug into the code, and sure enough, it was doing absolutely brain-dead 
things like this:

    memset(&so, 0, sizeof(so));
    fd = socket(so.sin.sin_family, SOCK_STREAM, 0);

Hard-coding sin_family to be AF_INET after memset solved my immediate 
problem, but clearly this dovecot release and package could never have 
worked for anybody. Or am I going crazy here?