开发者

Send postfix mail to Java application running on Tomcat

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜