Re: Postfix transports in master.cf

2008-11-20 Thread Wietse Venema
Matt Galloway: > But even if I just make the script write out what it recieves on > stdin, then it doesn't work, so clearly it's not my script... You can easily convince yourself with argv=logger that Postfix properly passes the email message on standard input. This is my last word. Wi

Re: Postfix transports in master.cf

2008-11-20 Thread Matt Galloway
But even if I just make the script write out what it recieves on stdin, then it doesn't work, so clearly it's not my script... I am fairly sure there must be some sort of bug or misconfiguration here somewhere... Matt Sent from my iPod On 20 Nov 2008, at 18:50, [EMAIL PROTECTED] (Wietse V

Re: Postfix transports in master.cf

2008-11-20 Thread Wietse Venema
Matt Galloway: > Hmmm, it just doesn't work for me. So i am using "argv=/usr/bin/script > test" so that it works. I'm sorry to hear that, but this demonstrates that your script has a bug. You can easily convince yourself that the example with argv=logger properly passes the message via standard i

Re: Postfix transports in master.cf

2008-11-20 Thread Victor Duchovni
On Thu, Nov 20, 2008 at 04:11:02PM +, Matt Galloway wrote: > Hmmm, it just doesn't work for me. So i am using "argv=/usr/bin/script > test" so that it works. > > The thing to note is that I don't need the envelope sender or recipient > - maybe in the future, but for now, I really don't need i

Re: Postfix transports in master.cf

2008-11-20 Thread Matt Galloway
Hmmm, it just doesn't work for me. So i am using "argv=/usr/bin/script test" so that it works. The thing to note is that I don't need the envelope sender or recipient - maybe in the future, but for now, I really don't need it. Imagine a transport which literally dumped the incoming email to a file

Re: Postfix transports in master.cf

2008-11-20 Thread Wietse Venema
Matt Galloway: > Hi, > > I've been playing with my own transport in Postfix and I have > successfully managed to get it working using pipe to pipe the mail to my > script. However, I notice it only works when I have something after the > command in the argv line. > > i.e.: > argv=/usr/bin/script

Postfix transports in master.cf

2008-11-20 Thread Matt Galloway
Hi, I've been playing with my own transport in Postfix and I have successfully managed to get it working using pipe to pipe the mail to my script. However, I notice it only works when I have something after the command in the argv line. i.e.: argv=/usr/bin/script This doesn't work, but: argv=/us