Does piping to a script require injection of mail after process

2013-12-04 Thread Merve Temizer
I followed the steps on the page http://serverfault.com/questions/258469/how-to-configure-postfix-to-pipe-all-incoming-email-to-a-script I wrote something on console by a script but could not see my mails in directory

Re: Does piping to a script require injection of mail after process

2013-12-04 Thread Dominik George
Hi, On Wed, Dec 04, 2013 at 10:56:50AM +0200, Merve Temizer wrote: I followed the steps on the page http://serverfault.com/questions/258469/how-to-configure-postfix-to-pipe-all-incoming-email-to-a-script I wrote something on console by a script but could not see my mails in directory

Re: Does piping to a script require injection of mail after process

2013-12-04 Thread Merve Temizer
Thanks for respons. My conf is below: master.cf javapipe unix - n n - - pipe user=pstfx flags=DRhuX argv=java /somejar -args ${recipient} postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases , ldap:/etc/postfix/ldap-aliases.cf append_dot_mydomain = no biff = no

Re: Does piping to a script require injection of mail after process

2013-12-04 Thread Merve Temizer
I need to run a perl or java script to save all incoming mails, but at first i need to test if my piping configuration is working, and i need to know if i must do something after saving mail in a perl or Java code. 2013/12/4 Merve Temizer mervet2...@gmail.com Thanks for respons. My conf is

Re: Does piping to a script require injection of mail after process

2013-12-04 Thread Merve Temizer
Sorry about my mails before response, but i saw the page :http://www.postfix.org/FILTER_README.html#simple_filter Do i have to use sendmail to inject mail back, does not it become an infinite loop, how can i manage this, is not there a cleaner way? Thanks for patience. 2013/12/4 Merve Temizer

Re: Does piping to a script require injection of mail after process

2013-12-04 Thread Dominik George
Hi, Do i have to use sendmail to inject mail back, does not it become an infinite loop, how can i manage this, is not there a cleaner way? there is still some confusion about what you are trying to achieve. I understand that you need to save all incoming mail, but: a) is your script the

Re: Does piping to a script require injection of mail after process

2013-12-04 Thread Merve Temizer
Thanks for response. It is b) . By milter do you mean filtering before queue, am i right? Because there is a title of the page http://www.postfix.org/MILTER_README.html that makes me think milter is filtering before queue. Am i right? If so, as i understand, before queue filtering is something

Re: Does piping to a script require injection of mail after process

2013-12-04 Thread Jeroen Geilman
On 12/04/2013 04:22 PM, Merve Temizer wrote: Thanks for response. It is b) . That's what always_bcc is for. The process behind the bcc address can trivially retrieve the original recipient - heck, postfix can even extract it for you with pipe(8). Don't with the original mail flow