Connecting the reception for the emails to a java application
===

I created a mail server with Postfix and courier , and I create automatically virtual emails address for many clients , so I work with a mysql database to store these virtual emails to connect them to postfix . What I will do is sending emails to external address with java mail , I didn't try it yet . (I'm not sure about this choice , if you have another suggestion please tell me).

And my problem now , is how I can rely the receiving emails (content,sender..) to a java program to display for example the message/content of the email to every client . Any ideas please ?