Seriously, there are a lot of open source mail servers/client, some of which might be good enough for you, e.g. http://cworth.org/sup/a-mail-client-for-geeks/
The main problem with running a mail server is properly keeping it up, secure, spam free, and trusted by peers to actually send email. These are not exclusively _software engineering_ problems with the existing (SMTP/RFC822-based) infrastructure. Rather, there's a large management component here, that is unlikely to be solved by software alone (open or closed source).
This will only change with a radical infrastructure change, along the lines of djb's Internet Mail 2000 proposal. Until then, if you want your mail server to remain reliable without working hard yourself, you'll have to delegate it (to google or hundreds of other available services).