Thanks egoitz & Ram. Actually I don't need the whole functionality of Postfix, I also need to cut the code for my requirement only. My requirement is to just receive the email and send the body and attachments to another component. There is no requirement of sending any email from my postfix server.
Now my question is, is it worth to cut the code and use the only module which I need or I should go with the whole postfix? Many Thanks, Sumit Arora -----Original Message----- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of ego...@ramattack.net Sent: Monday, September 14, 2009 6:30 PM To: postfix-users@postfix.org Subject: Re: Need help to change the Postfix code > Hi All, > > I'm new to postfix, I need to execute my code when I receive a new email > on my postfix smtp server. > Please give me some idea, where I can get the postfix code documentation > so that I can change its code. Depending on what the code does... you could run a script passing content to it via pipe in master.cf. This way is like maildrop mda works for example. What exactly does you're code?. > > All and any type of suggestions are most welcome, I'll really appreciate. > > Thanks in advance, > Sumit Arora > Ram wrote: To change postfix code for such a thing is absolutely unnecessary You can run a custom script in postfix by piping the mail to a script via aliases , or a master.cf entry