How do I implement a mail server using Java?

Serge Knystautas

Check out the JAMES project at http://james.apache.org/. It is an open source 100% Java implementation of a mail server (SMTP/POP3 for now with TLS support... IMAP4, LDAP integration, other features coming).

FAQ Manager note: If you are truly interested in writing your own server, basically you'll need to read up on the different RFCs for the different protocols like SMTP, POP3, IMAP, attachments, etc. To start, http://cr.yp.to/smtp.html offers a great place to learn about SMTP.