Re: Writing an after-queue content filter in php

2009-09-14 Thread Mathias Tausig
Am Freitag, den 11.09.2009, 16:10 +0200 schrieb Mikael Bak: Mathias Tausig wrote: I just tried to replace the \n with \r\l, but to no avail. The same problem remains. I can be wrong here, but shouldn't that be \r\n ? HTH, Mikael You are right, of course. I had \r\n before, with the

Re: Writing an after-queue content filter in php

2009-09-14 Thread Mathias Tausig
I just found the problem. At the very beginning of the script, I had a newline between #!/usr/bin/php5 and ?php Thus this newline was printed to stdout and the SMTP Client got this empty line as its first response instead of the 220 ... line. Thanks to everyone for trying to help me out.

Re: Writing an after-queue content filter in php

2009-09-11 Thread Mathias Tausig
Am Donnerstag, den 10.09.2009, 10:18 -0400 schrieb Wietse Venema: [...] This is an output buffering problem. You need to flush output after each reply, perhaps by calling the flush() function. Hy! No, I am afraid that this is not the problem. I am sendig you a few details of my setup Here

Re: Writing an after-queue content filter in php

2009-09-11 Thread Wietse Venema
Mathias Tausig: Am Donnerstag, den 10.09.2009, 10:18 -0400 schrieb Wietse Venema: [...] This is an output buffering problem. You need to flush output after each reply, perhaps by calling the flush() function. Hy! No, I am afraid that this is not the problem. I am sendig you a few

Re: Writing an after-queue content filter in php

2009-09-11 Thread Mathias Tausig
Am Freitag, den 11.09.2009, 08:38 -0400 schrieb Wietse Venema: Mathias Tausig: Am Donnerstag, den 10.09.2009, 10:18 -0400 schrieb Wietse Venema: [...] This is an output buffering problem. You need to flush output after each reply, perhaps by calling the flush() function. Hy!

Re: Writing an after-queue content filter in php

2009-09-11 Thread Wietse Venema
The php-net-smtp PEAR module implements an SMTP client; you may be able to pick some pieces to do the server portion of the protocol. Wietse

Re: Writing an after-queue content filter in php

2009-09-11 Thread Mikael Bak
Mathias Tausig wrote: I just tried to replace the \n with \r\l, but to no avail. The same problem remains. I can be wrong here, but shouldn't that be \r\n ? HTH, Mikael

Writing an after-queue content filter in php

2009-09-10 Thread Mathias Tausig
Hy! I want to write an after-queue content filter for my postfix installation which is invoked by spawn (according to the FILTER_README from postfix.org). My problem is, that the input/output part simply does not work. I am sending a 220 localhost SMTP foo to STDOUT at the beginning of the

Re: Writing an after-queue content filter in php

2009-09-10 Thread Wietse Venema
Mathias Tausig: Hy! I want to write an after-queue content filter for my postfix installation which is invoked by spawn (according to the FILTER_README from postfix.org). My problem is, that the input/output part simply does not work. I am sending a 220 localhost SMTP foo to STDOUT at

Re: Writing an after-queue content filter in php

2009-09-10 Thread Thomas Gelf
Wietse Venema wrote: This is an output buffering problem. You need to flush output after each reply, perhaps by calling the flush() function. Good catch, I guess this could most likely be his problem! -- mail: tho...@gelf.net web: http://thomas.gelf.net/