>>3
Email is more complicated because its more a concept with a long history than a particular piece of technology. Assuming you are looking for the kind of setup an ISP usually provides (SMTP and POP3/IMAP) you'll need a MTA/MSA (SMTP server), a POP3/IMAP server, content storage they both can read/write, and a MX and SPF entry on the intended domain's DNS. Content storage will be something like a Maildir or a database. You'll want to add some spam filters to the MTA's transport conf file as well.
If you're looking for webmail, replace the POP3/IMAP server with a web app running on your web server, all these things do is read and delete text files in 3 directories, you could even code one to resemble Yotsuba if that's your thing.
If you're looking for UNIX
mail, disregard the POP3/IMAP server.