0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
JPPINTO
  • Home
  • Certifications
  • About
  • Contact
  • Gallery
  • Current Setup
Contact

Search

July 16, 2010 / IIS 6.0, IIS 7.0, SMTP, Windows 2003

How to Configure IIS SMTP Server to forward emails using a Gmail account

Tags: configure smtp, gmail iis, gmail smtp, iis smtp relay

This is very useful when you want to test outgoing email for an application but not have access to an SMTP server. This is great for many applications including SQL Reporting Services, SharePoint and any other application which allows you to set an email/smtp server.

Prerequisites

1. Create and setup a Gmail account at http://www.gmail.com

2. Enable the Gmail account for POP3 in Gmail, you can follow the instructions on how to do this here: http://mail.google.com/support/bin/answer.py?answer=13273&cbid=wl8yzeug2lob&src=cb&lev=topic

3. Install the mail server role in IIS6 or IIS7. This should include both “POP3” and “SMTP” – you read more about this installation here: https://jppinto.com/2009/02/installing-iis-70-with-smtp-on-windows-server-2008/

Configure SMTP

We will now configure the IIS Server to forward messages using the Gmail account.

Open IIS Manager

Right Click “IIS SMTP Virtual server”

Select “Properties”

Select the “Access” Tab

Click “Relay”

Make sure “All except the list below” is selected

You can add servers to this list that you want to block from sending mail to this server if you press “AddÔò¼├┤Ôö£├ºÔö¼┬¼”

Press “OK”

Select the “Delivery” Tab

Press “Outbound SecurityÔò¼├┤Ôö£├ºÔö¼┬¼”

Select “Basic Authentication”

Enter your Gmail account (i.e. [email protected])

Enter your Gmail password

Select “TLS encryption”

Press “OK”

Press “Outbound connectionsÔò¼├┤Ôö£├ºÔö¼┬¼”

Set TCP port to “587”

Press “OK”

Press “AdvancedÔò¼├┤Ôö£├ºÔö¼┬¼”

Enter the Full-quailified domain name – this should be what you want this SMTP server to be called. If your server name is “SMTP” and your domain is “YOURDOMAIN.COM” then the entry should be “smtp.yourdomain.com”

Enter “smtp.gmail.com” as the “Smart host”

Press “OK”

Now configure the outbound email server in your application to use “smail.yourdomain.com” and it should relay the email through Gmail.

”
“

”
“

”
“

”
“

”
“

“”

Post Views: 656
<- Creating a GPO to Disable Services on Windows Servers
Remote Desktop Connection (RDP/RDC) will automatically resize when moving it ->

Categories

  • Active Directory (5)
  • Amazon Cloud Services (1)
  • Blazor (1)
  • C# (C-Sharp) (3)
  • CI/CD Pipelines (1)
  • Containers (4)
  • Development (1)
  • Docker (3)
  • General (5)
  • IIS 6.0 (4)
  • IIS 7.0 (10)
  • IIS 8.0 (1)
  • Infrastructure as Code (IaC) (1)
  • Kubernetes (3)
  • MySQL (1)
  • Office 2010 (1)
  • PHP (1)
  • PowerShell (3)
  • SharePoint 2007 (8)
  • SharePoint 2010 (19)
  • SharePoint 2013 (2)
  • SMTP (4)
  • SQL Server 2008 (1)
  • SQL Server 2008 R2 (1)
  • SQL Server 2012 (2)
  • SQL Server 2019 (1)
  • Uncategorized (1)
  • URL Rewrite (2)
  • Visual Studio 2019 (1)
  • Visual Studio Code (1)
  • Windows 10 (2)
  • Windows 2003 (9)
  • Windows 2008 (18)
  • Windows 2012 (6)
  • Windows 7 (3)
  • Windows Firewall (1)
  • Windows Vista (1)

Recent Posts

  • Install Terraform on Windows
  • Create a .NET Core 3.1 Console App in Visual Studio Code
  • Install a stand-alone SQL Server 2019 Enterprise Server
  • Create a Blazor App project in Visual Studio 2019
  • Username and Password for minikube Virtual Machine

Advertisement

Tags

backconnectionhostnames custom column default gateway disappears disable shutdown event tracker error opening exe exe permissions externalize blob externalize sharepoint data facebook spam filezilla server firewall rules filazilla full installation http redirect https https redirect IIS iis7 iis 7 installation IIS installation index server configuration installing cumulative updates load balance central administration magic default gateway missing default gateway moss advanced search nlb no default gateway powershell redirect http to https search column sharepoint 2010 cumulative updates sharepoint 2010 farm build sharepoint 2010 farm configuration sharepoint 2010 farm installation sharepoint data externalization shutdown event tracker shutdown tracker SMTP storagepoint Windows 7 windows firewall configuration windows live messenger crash windows server 2008 wlbs x86
© 2026 JPPinto.com – Tech Blog. All rights reserved.