> > while (<STDIN>) { > > ... > > } > > > > So executed outside of Postfix it is a one-time script. > > > Nope. The above loop handles an arbitrary number of greylist queries, > until it sees EOF on the standard input stream.
I see so its simply matter of postifx holds open STDIN of the script that explains everything for me thanks for explaination! > If you want to know if there is a relevant performance difference, > then you will have to do measurements. You can use Postfix's > smtp-source and smtp-sink tools to generate and absorb SMTP load. > > I expect that a multi-threaded implementation will use a bit less > memory and a bit more CPU, but the difference will be a drop in a > bucket compared to the cost of Postfix queue management. OK so its small in the scheme of things. If anyone else has real world experience and opinions that daemon is substantially different than spawn(8) then I welcome your thoughts!