For IMAP and mail services I could suggest you
iredmail which configures all the mail 'things' from one package (but you must be careful because all the preceding setup is overwritten / deleted, so save your conf files if you want to use it)
Otherwise go for Postfix/MySQL or LDAP/ Dovecot setup (search G)
good luck