Sorry my subject was not descriptive...

From: Daniel V. Reinhardt [mailto:crypto...@yahoo.com]
Sent: Tuesday, September 15, 2009 7:02 PM
To: Arora, Sumit; Postfix users
Subject: Re: Need help to forward emails




Hi All,

I need to execute my code when I receive email on my postfix smtp server.

Sorry I couldn't understand what Wietse said:
You can pipe-to-command with ~/.forward (see "man 5 aliases") and with the 
pipe(8) delivery agent (see "man 8 pipe").

Can anybody tell me what I can do if I want to execute my java function when I 
receive email.
Also I need my whole email content in my java function.

It will be great if anyone can show me some examples.

Many Thanks,
Sumit Arora



----------------------

My Reply


You can add another email address to the aliases file if you are running just 
straight postfix with no modifications like so:

root: u...@somehost.com

that would forward roots email to u...@somehost.com

Thanks,
Daniel

Reply via email to