Oh - I should have mentioned I have a how-to for secure email on FreeBSD w/ exim smtp + dovecot imap using a postgres datastore here: http://dev.2xlp.com/trac/wiki/FreeBsdMailSolution It's not fully completed yet - I don't know if it ever will be - but it can get you up and running with the basics in no time.