A mail server generally has no user interface. Are you sure that you mean a mail server and not a mail client.
Joined: Mar 22, 2005
That's a big undertaking. An excellent open source mail server written in Java already exists: Apache James. Check it out to get some ideas on what's involved. Its UI is based on Telnet, though, so no web technologies are involved.