You didn't say what is your mail server, but it can be done. For sendmail you need a .forward file in the user's homedir containing:
Code:
"|/path/to/the/script"
The same way for qmail you need a .qmail file containing the same as above without the quotes.
So I guess the same goes for the other MTAs.
Regards