Got this link from a colleague: http://www.linuxjournal.com/article/9454
It describes the inner workings of Postfix, the well-known mailserver for Linux.