Port 465 should work for the mail server settings.
From the SEPM server...
Open a command prompt.
Telnet smtp.gmail.com 465
If it is successful, than you have no issues.
If it FAILS, you will need to configure your firewall, either perimeter or SEP or Windows in order to allow access through port 465.
It's that simple.