Thanks p...@rick.. I read "man 8 pipe"..
And what I understand is, I need to change the configuration somewhere here in master.cf: # ==================================================================== # # Other external delivery methods. # #ifmail unix - n n - - pipe # flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient) # #bsmtp unix - n n - - pipe # flags=Fq. user=bsmtp argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient # #scalemail-backend unix - n n - 2 pipe # flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store # ${nexthop} ${user} ${extension} # #mailman unix - n n - - pipe # flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py # ${nexthop} ${user} Can I use .sh script here? Thanks, Sumit Arora -----Original Message----- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Patrick Ben Koetter Sent: Wednesday, September 16, 2009 1:53 PM To: postfix-users@postfix.org Subject: Re: how to pipe the received emails to my java function * Arora, Sumit <sumit.ar...@hp.com>: > Thanks Erwan > > As I'm new to postfix I couldn't understand what u said, I googled it but > didn't get any result useful to me. Have you read "man 8 pipe" yet? > Can u plz explain with some examples.. You can find some examples in /etc/postfix/master.cf. Look for commands that specify "pipe" in the command column. p...@rick > > Many Thanks, > Sumit Arora > > -----Original Message----- > From: owner-postfix-us...@postfix.org > [mailto:owner-postfix-us...@postfix.org] On Behalf Of Erwan David > Sent: Wednesday, September 16, 2009 12:44 PM > To: postfix-users@postfix.org > Subject: Re: how to pipe the received emails to my java function > > On Wed, Sep 16, 2009 at 09:10:01AM CEST, "Arora, Sumit" <sumit.ar...@hp.com> > said: > > Hi All, > > > > I need to execute my code when I receive email on my postfix smtp server. > > > > 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. > > Look at the pipe transport, its purpose is exactly to pipe mail to an > external program. > > -- > Erwan -- All technical questions asked privately will be automatically answered on the list and archived for public access unless privacy is explicitely required and justified. saslfinger (debugging SMTP AUTH): <http://postfix.state-of-mind.de/patrick.koetter/saslfinger/>