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

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.


1. Create and setup a Gmail account at

2. Enable the Gmail account for POP3 in Gmail, you can follow the instructions on how to do this here:

3. Install the mail server role in IIS6 or IIS7. This should include both “POP3″ and “SMTP” – you read more about this installation here:

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.

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 “

Enter “” as the “Smart host”

Press “OK”

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

Trả lời

Mời bạn điền thông tin vào ô dưới đây hoặc kích vào một biểu tượng để đăng nhập: Logo

Bạn đang bình luận bằng tài khoản Đăng xuất / Thay đổi )

Twitter picture

Bạn đang bình luận bằng tài khoản Twitter Đăng xuất / Thay đổi )

Facebook photo

Bạn đang bình luận bằng tài khoản Facebook Đăng xuất / Thay đổi )

Google+ photo

Bạn đang bình luận bằng tài khoản Google+ Đăng xuất / Thay đổi )

Connecting to %s

%d bloggers like this: