On a Ubuntu server, what's the easiest way to run a script (e.g. Python) when an email is received?
Email filters would be good, but not necessary.
Via procmail. (note this doc starts by suggesting using the .forward mechanism to invoke procmail from the MDA - its a lot simpler to use procmail AS the MDA)