I've had just a little trouble getting Apache, Sendmail, Imap running on my machine. Without these great articles I would have had ALOT of trouble.
Now I also configured SSL for Apache and installed Squirrelmail (www.squirrelmail.org), which is webbased email. Everything is running great on my homebox. If you want to install squirrelmail you need an imapd that supports unencrypted transport(doesnt matter much if squirrelmail is run on the same machine as imapd and sendmail).
To avoid problems though, I compiled one imapd with SSL only, and another which i renamed imapd_nossl. In inetd I just call the different daemons from the different ports - 143 imapd_nossl then 993(or whatever is it) imapd ssl only version.