> Just make sure to close stdout and stderr, to avoid writing garbage > into the pipe between Postfix and the filter, used to collect filter > error messages. > > With this level of complexity, you really should use the advanced (SMTP) > filter approach not pipe(8) based filters. >
Victor, To be honest, I haven't been able to successfully make the SMTP method work. I tried it last summer for something similar and ran into a bunch of small problems (can't remember what they were off the top of my head). If you have any simple samples of hitting a perl or python script using the SMTP method, can you send it to me. I tried what's on the web site (for advanced content filtering) but for some reason I just didn't get it (it didn't click for me).