ASPNetFAQ.com: What is ASP.NET?

Technology posts on ASP.NET, IIS, Windows (+ a little Linux), Cloud Servers, Hosting, and more!
  • Blog Home
Search the site...

GMail’s Send As Feature – SMTP Relaying

Tweet
Share
0 Shares

Gmail allows you to define multiple “send as” addresses. So if you want to use your GMail account but send email from You@YourCustomDomain.com, this can be supported. But, to support this you need to have a server set up that will relay the SMTP mail for you. For security reasons Google won’t allow you to relay non GMail addresses from their servers (unless you subscribe as a Google Apps user with a custom domain name – which isn’t free).

So, to get around this I decided to use my existing Windows cloud server and the Microsoft IIS SMTP service. First, make sure SMTP is installed on the server as I already blogged about in the past. That post was written for Windows Server 2008 but the steps are basically the same for Windows Server 2012. After installing the IIS SMTP service you need to configure it for relay, which I also already blogged about.

Notice in that second post that the checkbox for “Allow all computers which successfully authenticate, regardless of the list above”. That is key. So that list only allows relaying from the local server (127.0.0.1). To successfully authenticate you need to create a user account on the server. I suggest giving it an obscure name (yes, security by obscurity) and a super-super-super strong password. The last thing you want is for a spammer to get access to your SMTP service.

Once that new user account is set up you should be able to use that username/password combination to authenticate for SMTP relay. When entering this information in GMail you’ll need to select the less-secure plain text authentication option (or configure a certificate on the server, which is well beyond this post).

Give it a try – it works great.

More from my site

  • Configuring Microsoft’s SMTP Service to allow relayConfiguring Microsoft’s SMTP Service to allow relay
  • Installing the Microsoft IIS SMTP Service on Windows Server 2008Installing the Microsoft IIS SMTP Service on Windows Server 2008
  • IIS7 Application Pool Idle Time-out SettingsIIS7 Application Pool Idle Time-out Settings
  • Cloud Server FlexibilityCloud Server Flexibility
  • Stopping All Sites on a Windows Server Without Stopping IISStopping All Sites on a Windows Server Without Stopping IIS
Tweet
Share
0 Shares
Email, gmail, IIS, security, smtp

3 comments on “GMail’s Send As Feature – SMTP Relaying”

  1. Phuc Tran says:
    April 9, 2015 at 4:15 am

    It’s every help full thank you every much

  2. Duke says:
    April 16, 2015 at 5:09 pm

    Any easier solution for non-servering-educated like me?

    • Brad Kingsley says:
      April 21, 2015 at 1:50 pm

      The only solution I’m aware of if you can’t handle it technically, would be to actually pay Google and use GoogleApps – or use a different email provider that includes SMTP (most do). These aren’t free solutions though. :(

Proverbs 19:20

"Get all the advice and instruction you can, so you will be wise the rest of your life."

A Note On WordPress Hosting

Our main focus is of course .NET, but with a mix of Linux, virtualization, and other technologies. But if you're really looking for the best WordPress hosting specifically, read my WordPress host review to save yourself hassle AND money!




Recent Posts

  • What makes good web hosting?
  • jQuery Mobile C# ASP.NET and N5 Networks Software Repository
  • Open Source Bug Tracking Software and the Orchard Project
  • ASP.NET Development with Dreamweaver MX: Visual QuickPro Guide
  • Kendo UI Sample, ASP.NET Ajax Tutorial & More

Tags

ASP.NET Automation centos CMS css cytanium Development/Coding Email gmail Hosting htaccess http https IIS javascript Learning Linux logparser MySQL nginx openssl OrcsWeb performance PowerShell redirect RHEL security server SherWeb smtp SQL/Databases ssl System Administration telnet terminal tip Troubleshooting Ubuntu virtualization Visual Studio web farm web hosting Windows windows server Wordpress

Categories

  • ASP.net development
  • Development/Coding
  • Hosting
  • IIS (Internet Information Services)
  • SQL/Databases
  • System Administration
  • Virtualization
(c) ASPNETFAQ.com