I have found the following in a forum:
__________________________________________________ _____________________
Set up a .qmail file for bounces (e.g. .qmail-bounces) and put a pipe to a program inside it, like this:
| /usr/bin/process_bounce.pl
Now when
bounces@yourhostname.com receives an email, the script /usr/bin/process_bounce.pl will receive a copy of this email on standard input, so you can extract the relevant parts of it (e.g. the "To" field)
__________________________________________________ ____________________
If i would do this then your script would get the data via standard input and the use of your filedefinition would not be necessary any more. But i guess that your script does not accept any input from standard in yet ?
Cheers,