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.
Joined: Apr 07, 2010
i want to develop mail server..as well mail client.....