Where is the best place to do that? A redirect at the domain registrar, in my webserver (e.g. Apache), or in my app?
Edit: I'm wrong. See tadfisher's comment below.
1. http://joshstrange.com/why-its-a-bad-idea-to-put-a-cname-rec...
So it doesn't matter if people use the www prefix or not, since both point to the same IP. And with this configuration I've had no trouble with MX records.
If the goal is www/no-www transparency, there are other ways to do it, but using a simple DNS setup seems like the least hassle.