Matt Webb has an evil, evil script for changing your smtp server for every Location. As he says,
"Can I just point out that I would never be able to do anything like this on Windows or Mac OS Classic. But because Mac OS X and the unix underpinnings are so tightly bolted together, I can use Perl (which is easy, and I know from making websites) to bolt together all the bits I only slightly know, and still make my day-to-day gui existence easier. This is what an OS should be like. "