Turns out setting up an email server at Digital Ocean is pretty straight forward. Here’s my recipe:
- Follow this Digital Ocean tutorial to set up postfix.
- Poke a hole in the firewall for mail to get through with sudo ufw allow mail (not sure why the Digital Ocean tutorial didn’t have this critical step; props to this other recipe.)
- Add an MX record on the Digital Ocean DNS control panel.
- Add the email addresses to forward to the virtual aliases file.
No muss, no fuss. Nice!