Thursday, January 21, 2010

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

SkyHi @ Thursday, January 21, 2010

This is very useful when you want to test your outgoing email for SharePoint but not have access to an SMTP server.

  1. Create and setup a Gmail account to use POP3.

    Enabling POP3 in Gmail: http://mail.google.com/support/bin/answer.py?answer=13273&cbid=wl8yzeug2lob&src=cb&lev=topic

  2. Install the mail server role (POP3 and SMTP) 
  3. Configure the IIS Server to forward messages using that account:
    1. IIS SMTP Virtual server -> Properties ->
      1. Access Tab

    clip_image001

    1. Relay Button

    clip_image002

    You can specify only the servers that you want to be able to send email here by selecting Only the list below and adding your servers IP addresses.

    1. Delivery Tab

    clip_image003

    1. Outbound Security Button:

    clip_image004 
    Select Basic Authentication and specify your Gmail account  and password. Check the TLS encryption.

    1. Outbound connections button

    clip_image005
    Set TCP port to 587.

    1. Advanced Button

    clip_image006
    specify the smart host as smtp.gmail.com

  4. Now configure the Outbound email in SharePoint to send email to the server where you have installed this SMTP server.
Reference: http://fmuntean.wordpress.com/2008/10/26/how-to-configure-iis-smtp-server-to-forward-emails-using-a-gmail-account/