Skip Ribbon Commands
Skip to main content
Ocean Approach Pty Ltd > Musings from the Grove > Posts > Enabling email in Sharepoint 2007 on Windows Server 2008 without Exchange
November 24
Enabling email in Sharepoint 2007 on Windows Server 2008 without Exchange
There have been many posts about enabling both incoming and outgoing email in Sharepoint. the process is pretty simple as the Sharepoint Central Administrator basically talks you through the steps involved. However, when this is done on Server 2008 and Microsoft Exchange is not currently being implemented as the email solution, it gets a little bit trickier.
I am trying to get this running and have come across some issues - it doesn't work. Maybe the detail I have entered is incorrect but I have tried several options and none have been successful to date.
The server does not currently have the SMTP Server Feature installed. I wanted to leave this for the moment. I believe that this is only required for incoming email.  I first want to establish outgoing email capability.
 
To facilitate this I am using a GMail account.
First, the account details were entered into the Incoming Email page in Sharepoint Central Administration - Operations. All that is needed is the Email Address and the SMTP server name (smtp.gmail.com).
Server Manager
Second, in Server Manager I drilled down to IIS7 and selected the Sharepoint instance to display the components. There is one called SMTP Email.
On selecting this the credentials for the GMail account were entered and the changes applied.
From here I should be able to go to a libray inside the SharePoint site to set the alerts.

This doesn't work. As soon as I figure out what the issue is I'll update this post.
 
IIS7 Components
 
Update - 8 Dec 2008
After spending a bucketload of time on this it was time to post a question into a group that I thought might have the answer. Posted here. Unfortunate no response came back. So I tried serching some different avenues. Finally came across a clue here. The properties I need for SMTP seem to be in IIS6 not IIS7. When you add the SMTP Server feature in Windows Server 2008 it installs IIS6. To get to IIS6 you select it from the Start - Admin Tools instead of drilling down through Server Manager.
 
In IIS6 I have selected the Properties (right click) of the default Virtual Server (wihtout changing any other option or setting any other configuration) and in the Access tab, selected the Authentication button. Then I have selected Basic Authentication and deselected Anonymous Access. The Requires TLS Encryption option has also been activated and the Default Domain set to smtp.gmail.com.
 
Update - 20 Feb 2009 - FIXED!
With some help from others we were able to get this working:
  1. Start IIS6 Manager (Start/Adminisdtrator Tools)
  2. Drill down to the SMTP Server and right-click for the Properties.
  3. On the Access tab - Authentication button, have 'Anonymous' as the only one selected
  4. On the Access tab - Connection button, select 'All except the list below' and leave the list blank.
  5. On the Access tab - Relay button, select 'Only the list below' and add two entries - the ip address of the current server and the loopback adapter (127.0.0.1)
  6. On the Delivery tab - Outbound Security button, select 'Basic Authentication' and include the username and password of the GMail account. Note: the username is the full email address (name@domain.com).
  7. On the Delivery tab - Outbound Security button, tick the TLS option.
  8. On the Delivery tab - Advanced button, set the 'Smart host' to "smtp.gmail.com".
  9. Restart IIS.

If all the other settings for Sharepoint have been correctly configured, this should now allow the email to be despatched. As there are settings controlling the timing, this will not occur immediately. The default is 15 minutes.

Hope this helps someone else.

You might also be interested in this - How to Send Email from the Internet to Sharepoint on SBS 2008 on the Offical SBS Blog site.

Comments

Saurabh

Hi......
m also getting this error..... i am trying to send mail using Sharepoint Workflows. i am using the Gmail outgoing mail server "smtp.gmail.com"

it gives me an error:

#160005: Bad response from SMTP host'smtp.gmail.com': 530 5.7.0 Must issue a STARTTLS command first. 14sm64880tim.29.

i don't know how to solve it.

Kind Regards,
Saurabh
 on 20/02/2009 9:36 PM

Similar issue

Hi Saurabh, This is a similar issue to what I had. Activating the TLS option in step 7 should resolve this part.
 on 21/02/2009 9:36 AM

Re: Enabling email in Sharepoint 2007 on Windows Server 2008 without Exchange

Do I have to set the number of the port or I just leave with the default number "25"?
In the iis7 i change anythiing on Smtp e-mail or just tick the loalhost option and por 25?
 on 14/07/2009 11:13 PM

Re: Enabling email in Sharepoint 2007 on Windows Server 2008 without Exchange

Do I have to set the number of the port or I just leave with the default number "25"?
In the iis7 i change anythiing on Smtp e-mail or just tick the loalhost option and port 25?
 on 14/07/2009 11:14 PM

Re: Enabling email in Sharepoint 2007 on Windows Server 2008 without Exchange

Do I have to set the number of the port or I just leave with the default number "25"?
In the iis7 i change anythiing on Smtp e-mail or just tick the loalhost option and port 25?
 on 15/07/2009 12:00 AM

Re: Enabling email in Sharepoint 2007 on Windows Server 2008 without Exchange

Thank you a lot!
It works! We've been waiting so long for this solution since moved to Google Apps.
 on 6/10/2009 3:15 AM

Do I CHANGE PORT

DO I CHANGE PORT FROM 25 to something else??
 on 16/12/2009 2:00 PM

Should I change the port?

There is no real need to alter the port. You would only move away from the default port for added protection.
Patrick WoolsNo presence information on 5/01/2010 8:30 AM

local host or smtp

thanks for your help ,but what are settings for SharePoint ,do i need to put local host or gmail smtp ? ,another question ,doesn't anonymous access allow spam ? what about using basic authentication?
 on 21/08/2010 9:07 PM

Hassan

Follow the steps in the section marked "Update - 20 Feb 2009 - FIXED!" above. That should work for you. Haven't tried this on 2010. Only 2007.
Patrick WoolsNo presence information on 23/08/2010 11:56 PM
1 - 10Next
 

 InfoPath Form Web Part

 
Use this Web Part to display an InfoPath form
Use this Web Part to display an InfoPath form				This Web Part has not been configured. You must have permissions to edit the page to configure this Web Part.