开发者

Foreward email from postfix to java application

In our current implementation we are forewarding all relevant emails to a mail alias that triggers a perl script, which is processing the email. In /etc/aliases we have something like:

emailuser | process_email.pl 

When we replace the perl script by a java application, starting a java vn on every email is much more resource intensive than just starting up a perl interpreter.

emailuser | process_email.java 

It would be better to pass the email to a runnig instanc开发者_开发技巧e of the java application. But how can I do that?


Have the java app open a named pipe and pipe the mail into it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜