I am developing one application where I need to invoke a Perl script as soon as mail receives. I am using QMAIL as MTA. I read about Qmail-qfilter where we can intercept inbound mail but I am using Qmail 1.06 where Qmail-qfilter is not inbuilt package. I tried to search that package but it's outdated, So I am not getting proper solution for it.
So, I want to know where I need to mention automatic execution of Perl script as soon as my mail receives in qmail and what is alternative way for Qmail-qfilter.
If you are really sure about executing one perl process per incoming mail, you might call it from a .qmail file as a delivery pipeline. The man page to dot-qmail has details.