I'm trying to set up a mail server on my Ubuntu 12.04 box from Linode. The box currently runs Apache, MySQL and PHP and runs a few of my websites, and I want to set up an email account like
email@example.com. In the interest of learning, I'd like to go through the painful task of setting up my own mail server.
I've seen lots of suggestions on how to do so, most involve using Postfix and Dovecot, but I'm really struggling to understand:
- What is the difference is between both?
- How to set them up properly to work together?
I just want a mail server running IMAP which I can use a mail client like Thunderbird with.