I had to reopen the ticket, as the debian package still fails to build from source.
I just checked and my patch has been accepted and integrated upstream: https://github.com/dovecot/core/pull/245 But it's not yet included in this debian source, so the build still fails. Can you either update to latest dovecot sources, or add the patch (for now) ? Thanks! Helge

