I used this when I ran Ubuntu server in Linode: https://help.ubuntu.com/community/MailServer . Did postfix+dovecot (local accounts, no database)