Setting up Gmail to go through your SMTP server
Posted: Oct 17, 2013
While do have my own web server, I prefer to use Gmail for my email client rather than maintain my own. However, I want to be able to switch mail services when ever I want, so I don't give out my Gmail address. I have configured Gmail to send mail via my server. This allows you to get rid of the "on behalf of" message that Gmail will add to out going messages if you send the mail through Google's servers. This defeats the whole purpose of using your own server since now people will have your Gmail address and email you there.
I don't run an open relay, so there is a little more configuration to ensure safe communication.
If you would like to have Gmail send email through your web server and not have that annoying "on behalf of", here is how to do it:

I don't run an open relay, so there is a little more configuration to ensure safe communication.
If you would like to have Gmail send email through your web server and not have that annoying "on behalf of", here is how to do it:
1) Click on Options in the Top Right corner
2) Select Settings
3) Click on the Accounts tab
4) Click Edit Info for the account you want to edit
5) Enter your name as you want it displayed
6) Select “Send through YOURDOMAINHERE SMTP server.
Enter your SMTP server (smtp.YOURDOMAINNAMEHERE.com).
Select “Secured connection using SSL”
Enter Port 465
Your email will now be sent from Gmail through your server with no traces of Gmail for the average user.