Hupa is the web-mail in the james project, it uses javaMail to retrieve messages from imap servers. You can take some code to connect with your server from the InMemoryIMAPStoreCache.java.
Cannot connect to Imap server using Apache james from java code
Question
Can someone please provide a solution to the problem in
How to connect to MailServer using JavaMail
I am stuck at the same point.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow