I have a Postfix mail server, and I want to forward my received emails to my application written in Java and running on a Tomcat web server.
As far as I know, it is possible to forward the whole email (head, body, everything) to a port on localhost, where both the mail server and my applic开发者_如何学Cation is running.
But I don't have any idea how to achieve this. I assume to a http server like Tomcat I cannot send this data in plain (postfix does not wrap it into a http package), so maybe I have to write another daemon process to receive the data from postfix, wrap it into http, and send this to my application?
I'm a bit confused, and have never been a specialist of protocols and these kind of things.
Please someone explain how can I solve the problem above!
Thank you in advance, Balázs
精彩评论