How to configure GMail account in Mail 6.0 behind a proxy


Can anyone tell me how to configure a Mail to get it work behind a proxy? It concerns just for a GMail account for the moment. Is there any special tips for other accounts or it is the same for all the ones?

I'm on Mac OS X 10.8.2, Mail 6.2.

Thanks and regards.