Can anyone here point me to a library/framework that would allow for monitoring incoming emails (similar to this scenario) and take actions based on email address it was sent to?
A quick example of this for Perl is http://www.perlmonks.org/?node_id=1030830 (replace the perl script with any program)
Another way would be to setup a transport map that targets a hook that you setup in your master.cf file but it's probably best to find more tutorials online to understand everything that is taking place.
1. If your domain is using a virtual alias then point the virtual domain's recipient to the alias.
http://lamsonproject.org/ https://developers.google.com/appengine/docs/python/mail/