Listening to incoming and outgoing email
Hi,
I would like to determine if there is a way to listen on the email ports of a server for incoming and outgoing email messages, without interfering with the already existing mail server processing. I would like to retrieve some information from certain incoming and outgoing emails and save it to database.
I believe that if I use the JavaMail API, then I'm in effect reading the emails as they are received by the mail server. My aim is to read the emails prior to them reaching the server application.
Can anyone tell me if this is possible in java?
Thanks!

