cached mail server written in erlang