See AUTHORS file for list of copyright holders. Everything is MIT licensed (see COPYING.MIT). Note that imaptest also links to libraries from Dovecot. They're either MIT or LGPLv2.1 at the time I'm writing this.