I used to have exim on my server and it did some fancy forwarding so copies of user@mydeparment.university.edu were forwaded to my pager. I switched to postfix (and love it), but postfix doesn't do fancy forward filtering, and who wants bloated procmail, so I made a little perl script that does the trick.
just put this in your .forward:
\username, |/home/username/thisscript
Postfix will pass the email to the script and away you go.
This is the first in my continuing series of "poorly commented, slapped together scripts from rob"
Next I want to see how to redirect any errors generated by this script. Right now they are emailed to the sender of the emailt hat triggered the script - not too helpful.
live long and prosper |