post...@ptld.com: > There are no errors or warnings. The script runs and works. I can see > the values (request=smtpd_access_policy, etc) saved by the script to > log. I can also run the script from console with no errors or warnings. > Everything works, only problem is script never ends and becomes zombie. > > What should i expect to happen?
As Viktor noted, each smtpd(8) process makes its own connection to a policy service. Then, an smtpd(8) process will reuse its own policy service connection, not a connection that belongs to a different smtpd(8) process. Also, an smtpd(8) process will not immediately close the policy service connection. This is to avoid the overhead of creating processes and making connections for each SMTP client request. What you call zombies could be just Postfix daemons waiting for more work. What evidence do you have that you have zombie processes, and not simply processes that are idle waiting for work? Wietse