Monday, August 8, 2011

How To: Create, Configure, Consume SharePoint 2010 Secure Store in Business Connectivity Services


 I have seen quite a bit of confusion out there regarding how to use Secure Store Service for SharePoint 2010. While MSDN does have interesting articles, there has been no Alpha to Omega process that shows the relationship to the LOB System, Security Groups representive of the BCS Consumers, BCS Access Account representive of the Credential Owner [Impersonated User], and how to wire it up in SharePoint Designer 2010. This blog hopefully will dispel all fears about Secure Store and answer a MSDN Forum question while at it.
The Blog is broken up into sections
  • Prep Work
    • Active Directory Users in Play
      • The Service Account I am selecting as the Impersonated User (Credential Owner)
      • The Security Group where all the people that will consume BCS Data will reside
    • SQL Server Security
      • Who has Access to What
  • Setup
    • Creating & Configuring the Secure Store Object
    • Creating & Configuring the External Content Type in SharePoint Designer 2010
      • Creating External Connection with Secure Store
      • Creating the External Content Type
    • Reviewing the External Content Type (ECT)
    • Reviewing the Security on the ECT
  • Test & Validation
    • Creating an External List derived from the ECT
    • Logging on as a User from the Security Group AND Secured in the permission setting of the EC

  • Logging on as a User from the Security Group NOT Secured in the permission setting of the ECT
  • Part 1: Setup

    clip_image001 Above: This represents the AD Account [appBCSUser] which I will use as the Impersonated User i.e. the Broker if you will that will connect to the LOB system on behalf of the Group of people who should have access to the data but DOES NOT have access to the database. This is something your DBA will love because he doesn’t have a flurry of people having accounts on his/her DB. clip_image002 Above: This represents the AD Security Group [SecureStoreBCSUsers] that have access or should have access to LOB Systems. You can of-course have multiple of these for any number of LOB Systems. Note here that Fabian and Hardeep are in this list, we will be the test users later on. clip_image003 Above: Lets look into CA now and set up our environment clip_image004 Above: Click Applications Management then Manage Service Applications clip_image005 Above: We are interested in the Secure Store Service so we click it clip_image006 Above: We already have some there from previous Labs, but we will create a new one… click New clip_image007 Above: We create a Target Application ID [note this cant be changed once committed], Display Name which can be the Same App ID, and so on. clip_image008 Above: I populate the fields and choose “Group” as my Target Application Type. MSDN has a good explanation as to why you want to do that over other options. the Long and Short is that it allows me in this example to tie an AD Group FabianLab\SecureStoreBCSUsers to a single set of credentials i.e. the FabianLab\appBCSUser account. Ill show a few other options below clip_image009 Above: By default it wants to know how you will collect the credential of the Impersonated User in my case it is a Windows Account so this works. clip_image010 Above: I change it around a bit for kicks by adding the word Testing infront of the default text clip_image011 Above: Here are a few other options that you can use. SSS is a Claims Aware SSO solution and can take in just about any Authentication Mechanism clip_image012 Above: So here because I only log on to CA with the Farm Admin Account, I set that as the target App Admin, however here is where we start to make the App Work for our design. In Members, you can see that i have my AD Group Account earlier. This means that I dont have to meddle with the SSS App anymore, just add and subtract from the AD Security Group. clip_image013 Above: It processes once i click OK clip_image014 Above: Now i have a NEW SSS App, but wait you may ask… what about the Impersonated User.. we are coming to that… clip_image015 Above: We click on the custom actions available and select SET CREDENTIALS to set the Mapping for the Impersonated Users to the Group that we will Manage of “Allowed Users”… clip_image016 Above: Our trusty Silverlight App shows the progress of us opening a Dialog Pane clip_image017 Above: The default look of the Credential Mapping clip_image018 Above: I populated the values with my User Account previously mentioned in the AD Step

    Part 2: Validation and Testing

    clip_image001[4] Above: So in SQL Sever you can clearly see that the only account that has Access to the Database “FabianPlayPen” is the AD User mentioned above right… clip_image002[4] Above: We create a new External Content Type by defining the name and Selecting External system to define our Connectivity clip_image003[4] Above: We choose SQL from the list of choices clip_image004[4] Above: We define our SSO connection. One note here though in full disclosure, I had tried a few times to make this work and did a typo, so I re-did my SSS App and called it FabianLABSSSMSDNForumQ from what i had it last but the steps are the same. clip_image005[4] Above: Here you may or may not get challenged for credentials when you click OK. The credentials you put here are or should be your own; assuming that you are in that Security Group that will be mapped to the Impersonated User. If not, then you need an account in that Security Group List. clip_image006[4] Above: Once completed you will be able to connect to your LOB System, expand it and perform any operation allowable to you clip_image007[4] Above: In our instance lets just create a FULL CRUD operation clip_image008[4] Above: Validation that it is complete clip_image009[4] Above: Click the “Save” button to push the ECT up to the BDC Metadata Store. clip_image010[4] Above: Now we can check a place where alot of Gotchas happen. Now one may assume that because they have access to the LOB system via the impersonated user and Group Mapping you are done… You’d be wrong, now you NEED to have permission to use the ECT and I already have mine set up by default under “Set Store Permission” to add myself, the search account, and my service account by default. You may need to put your security group here to make it seamless, but because i am doing demos and want it to break depending on my use case, i leave it fluid. clip_image011[4] Above: to do that, click the custom actions and select “Set Permissions” clip_image012[4] Above: Do your business here by adding the users you want to have access. Here note that Hardeep doesnt have access while he IS a member of the Security Group. clip_image013[4] Above: Once done, now we can create our External List by choosing our ETC recently created. clip_image014[4] Above: Commit to the System and cross your fingers…. Voilla!

    Part 3: UAT

    clip_image015[4] Above: Logged on as Me… clip_image016[4]

reference: http://fabiangwilliams.wordpress.com/category/sharepoint-designer-2010/:

Wednesday, July 27, 2011

Upgrading your Content DB to SharePoint 2010 – Part 1, The preupgradecheck


I’m sure there are a lot of SharePointers out there who are excited about the 2010 release and as I have been working my way through the installation and configuration of this updated beast, I have also been providing you with posts along the way sharing my experiences.  Today isn’t any different, and in this two part series I will be providing you with a guide to upgrading your SharePoint 2007 content databases to SharePoint 2010.  There are already some great resources out there regarding upgrade options and preparation guidance including those from Microsoft on the TechNet Site and others which I will list at the end of this article. The prime focus of part 1 of this 2 part series will be to outline the many tools that are available to you at no cost, assisting and ensuring that your SharePoint  farm and SharePoint databases are up to scratch and ready for 2010.  The series will proceed as follows;
  1. Upgrading your Content DB to SharePoint 2010 –The preupgradecheck
  2. Upgrading your Content DB to SharePoint 2010 – Using the Database Attach method
First and foremost, Microsoft have provided us with the pre-upgrade command line stsadm parameter switch in SharePoint 2007 Service Pack 2, which has been further updated with the latest October 2009 Cumulative Update (CU),. This will be our primary analysis and reporting tool providing us with invaluable information regarding your SharePoint 2007 farm and actions that may be required to be taken prior to upgrading to SharePoint 2010, so let’s begin our journey here.
Launch a Windows command prompt on your SharePoint Server and type the following stsadm command from the following directory;
%COMMONPROGRAMFILES%\Microsoft Shared\Web Server Extensions\12\bin
stsadm.exe -o preupgradecheck
This will begin the pre-upgrade process checks which will display the relevant steps in your command prompt window.
image thumb Upgrading your Content DB to SharePoint 2010 – Part 1, The preupgradecheck
When the pre-upgrade process completes, you will receive the following “Operation completed successfully” message in which it will then launch your web browser displaying the results in HTML format, titled “SharePoint Products and Technologies Pre-Upgrade Check Report”.  These results can also be located under the following location;
%COMMONPROGRAMFILES%\Microsoft Shared\Web Server Extensions\12\Logs\
image thumb1 Upgrading your Content DB to SharePoint 2010 – Part 1, The preupgradecheck
What you will notice is that the report being displayed does a great job in not only notifying you of any issues regarding your SharePoint farm such as missing Site Definition Information or missing Feature Information, but it also provides you with a blueprint of your SharePoint Farm setup.  Such useful information which will be required to be taken into consideration when upgrading to SharePoint 2010 includes the following items;
  • Search content sources and start addresses
  • Office Server Search topology
  • Servers in the current farm
  • SharePoint version and list of components running in the farm
  • Supported upgrade types (Inplace Upgrade and Content Database Attach)
  • Site Definition and Feature Information
  • Language pack information
  • Alternate Access Mappings (AAM) that will need to be recreated
  • Customized List views (these will not be upgraded)
  • Customized field types (these will not be upgraded)
  • WSS Search topology
  • List of Content Databases and SQL server location
Joel Oleson does a great job in explaining these items in great detail in his blog post Preparing for Upgrade to 2010 Today – Part 1 Preupgradecheck, however I will outline some of the issues that I personally encountered with my SharePoint 2007 content database.
The majority of your issues will most likely evolve around Missing Site Definition and or missing Feature Information.  These missing items are listed at the bottom of each of these respective sections in the pre-upgrade report.  My first problem area was a missing Site Definition.
image thumb2 Upgrading your Content DB to SharePoint 2010 – Part 1, The preupgradecheck
name = Unknown, language = 1033, template id = 75816, count = 5, status = Missing
Notice that the name of this feature is  “unknown”, which isn’t of much help, however this is where Google (or your preferred search engine provider) comes into play.  The key identifier is the template id which in this case is 75816, and after typing this ID number in my search criteria I was immediately presented with a number of results all pointing to the Help Desk Fab 40 template.  Aha! my eyes lit up and I recall back in the day installing some of the Fab 40 templates (I’m sure many did at the time of release).  So I downloaded the solution from the Microsoft Download Center and re-installed the template. I then re-ran the preupgrade check and whalla! my missing site definition now has a name against it with a status of “Installed”.
image thumb3 Upgrading your Content DB to SharePoint 2010 – Part 1, The preupgradecheck
My next problematic area was a plethora of missing features. Now this will all depend on how much history is attached against your current SharePoint farm environment and how many 3rd party solutions and or custom development have been installed or uninstalled over time.
image thumb4 Upgrading your Content DB to SharePoint 2010 – Part 1, The preupgradecheck
One thing you will learn throughout this process is that the preupgrade check utility does a great job in naming features against GUID’s when they are installed, but fails miserably in displaying names when they are missing.  Once again, Google quickly becomes a point of reference and 9 times out of 10, utilising the GUID in your search criteria will yield the results that you are after, and that is the actual name of the missing feature.   A few of mine were features from the Codeplex site so I was easily able to identify whether I needed to re-install or remove these rogue items.  In most instances, if they are missing, they are missing due to failed uninstalls, so this is where the stsadm becomes your next best friend.
Let’s take a single example where the following GUID was listed as being missing; 758a6fdf-005a-bcaa-0ea0-1d4931979fec.  You will need to run the following stsadm –o deactivatefeature command to remove the rogue entry.  More information on the this command can be located in the following TechNet article.
STSADM -o deactivatefeature -id 758a6fdf-005a-bcaa-0ea0-1d4931979fec -url http://intranet.georgekhalil.com -force
In addition to the STSADM command line tool, there are a couple of other tools that really assisted with the process of removing rogue features where the stsadm actually failed.  The first tool which is provided by Gilham Consulting , is the WssAnalyzeFeatures tool, which will assist in listing features against their GUID similar to that of the preupgrade report.
image thumb5 Upgrading your Content DB to SharePoint 2010 – Part 1, The preupgradecheck
The second tool required as part of the removal process is the WssRemoveFeatureFromSite which will remove rogue features installed in your SharePoint farm where the stsadm –o deactivate feature might fail.  Eventually you would want the output of the WssAnalyzeFeatures command to display no problems.
image thumb6 Upgrading your Content DB to SharePoint 2010 – Part 1, The preupgradecheck
So after re-installing or removing any rogue features and site definitions we should be ready to proceed with our SharePoint 2010 upgrade, taking into account that there were no other problematic areas that were outlined in the preupgrade check.
There are several other tools worth mentioning that also assisted with outputting information and configuration details of my farm and assisted with the SharePoint farm cleansing process.
The SharePoint Feature Administration and Clean Up Tool which you can download from the Codeplex site,  does a great job in listing Feature Definitions across Site Collections and Sub Webs and cleanly uninstalling them.  My favourite feature in this tool is its ability to locate any faulty features and then providing you with the ability to remove them from your entire farm.
image thumb7 Upgrading your Content DB to SharePoint 2010 – Part 1, The preupgradecheck
Clicking on the Find Faulty Feature in Farm should hopefully return the following “No Faulty Feature was found” message.
image thumb8 Upgrading your Content DB to SharePoint 2010 – Part 1, The preupgradecheck
SharePoint Manager 2007 (note there is already a SharePoint Manager 2010 available) can also be downloaded from the CodePlex Site and is a great tool for administrators and developers in providing an understanding of any SharePoint farm topology.
image thumb9 Upgrading your Content DB to SharePoint 2010 – Part 1, The preupgradecheck
My last tool of choice is from Bamboo Solutions, namely the Bamboo SharePoint Analyzer.  Similar to that of SharePoint Manager 2007, this utility also does a great job is listing everything you need to know about your SharePoint environment and your entire farm topology.  This is also available as a free download and should be installed as part of any SharePoint Farm deployment.  These tools will also greatly assist in replicating your environment for your SharePoint 2010 deployment.
image thumb10 Upgrading your Content DB to SharePoint 2010 – Part 1, The preupgradecheck
Hopefully I have provided you with a comprehensive list of tools and tips to assist you in getting your Content DB’s primed for your SharePoint 2010 upgrade.  In the next part of this series I will focus on the actual upgrade itself utilising the Database attach method, so stay tuned!

References:
Upgrading to SharePoint Server 2010 – TechNet
Run the pre-upgrade checker (SharePoint Server 2010) – TechNet
5 Reasons SharePoint 2010 PreUpgradeCheck is better than Prescan – SharePoint Joel
Preparing for Upgrade to 2010 Today – Part 1 Preupgradecheck – SharePoint Joel
Planning for SharePoint 2010 – Upgrade Planning Part 4 – Using preupgradecheck – Chandima.Net
|
Subscribe

Upgrading your Content Database to SharePoint 2010 – Database Attach method


lcome back to the second article in this series on upgrading a SharePoint 2007 content database to SharePoint 2010.  In we deep dived into the preupgrade tool that Microsoft made available with SharePoint 2007 SP2 and today we will complete our upgrade journey utilising one of the 3 upgrade models that are available to you by Microsoft.  These are listed as follows;
  1. In-place upgrade
  2. Database attach upgrade to a new farm
  3. Hybrid approach (Read –only databases or Detach databases)
There is a wealth of information regarding these different approaches on the Microsoft TechNet site under theUpgrade and Migration Resource Center for SharePoint 2010. I will also outline other resources at the end of this article for convenience.
The upgrade model that I have chosen in this article series is the Database attach upgrade approach in which I will outline in this step by step guide.  The upgrade choice you choose is dependent on a number of factors such as how much down time can you afford and whether you are moving onto newer hardware.  All three options have their strong and weak points which is outlined in the following TechNet article; Determine Upgrade approach (SharePoint 2010)
This article is assuming that your SharePoint 2010 environment is up and running (albeit in beta form).  I have published a 3 part series in getting your SharePoint 2010 environment up and running that you can access from the following links;
  1. Installing SharePoint 2010 Beta on a Windows 2008 R2 Server
  2. Configuring SharePoint 2010 (Beta) Service Applications and User Profile Service Synchronization
  3. Creating your first SharePoint 2010 Beta Web Application and Site Collection
When using the database attach method to upgrade your databases to SharePoint 2010, you need to be aware that none of your configuration settings in SharePoint 2007 will migrate.  You will need to ensure that you have replicated your 2007 environment in the newly created 2010 farm.  Some of the items to consider include the following;
  • Outgoing email server
  • Alternate Access Mappings (AAM)
  • Quota templates
  • Included paths
  • Install any custom or 3rd party features, including web parts, solutions
  • Custom site definitions
  • Custom CSS
In order for you to perform a database attach upgrade into your SharePoint 2010 environment you need to ensure that you have created a new web application.  If you have not done so, you can follow my step by step guide on Creating your first SharePoint 2010 Beta Web Application and Site Collection.
Step 1 :: Restoring a copy of your SharePoint 2007 content database
Now that we have ensured that all our configuration settings are in place, and that all custom features, web parts and solutions have been re-instated, we can now proceed with our upgrade.  You will need to firstly backup and take a copy of your SharePoint 2007 content database and restore it to the newly created SharePoint 2010 farm.
I’m performing my database restore utilising SQL 2008 Management Console.  Right click on Databases and select Restore Database.
Select your source and destination as follows;
image thumb11 Upgrading your Content Database to SharePoint 2010   Database Attach method
Click on Options and ensure you have selected Overwrite the existing database.
image thumb12 Upgrading your Content Database to SharePoint 2010   Database Attach method
Click OK.
We should receive the following confirmation message once the database has been successfully restored.
image thumb13 Upgrading your Content Database to SharePoint 2010   Database Attach method
Step 2 :: Verifying the Content Database
As you have already noticed from our first article, in particular with the introduction of the preupgrade check tool, Microsoft have done a great job in providing us with the necessary tools to ensure a successful upgrade.  The next tool that we will be using is the Test-SPContentDatabase Windows PowerShell cmdlet.  This cmdlet will test and verify that any custom components that are required for this content database has been installed and configured in the SharePoint 2010 environment.
Test-SPContentDatabase –Name  -WebApplication 
Launch the SharePoint 2010 Management Shell and type the above command, ensuring you have entered your Database Name and URL. e.g. below
Test-SPContentDatabase –Name WSS_Content_Intranet -WebApplication http://intranet.georgekhalil.com
The Test-SPContentDatabase is a great reporting tool that will list any missing setup files, web parts and provide you with information on how to remedy any errors.  It will also specify whether these missing features will block the upgrade from succeeding.
image thumb14 Upgrading your Content Database to SharePoint 2010   Database Attach method
You can either attend to these missing features pre or post-upgrade but this depends on whether there are any items that will block the upgrade from proceeding.  Once you have remedied the above, we can proceed with our next tool, which will add the content database to our Web Application.  The stsadm  addcontenddb command line parameter is as follows;
stsadm -o addcontentdb -url  -databasename 
Before proceeding, ensure that there are currently no databases connected to the web application that we will be attaching to.  You can check this via Central Administration / Application Management / Manage content databases.
image thumb15 Upgrading your Content Database to SharePoint 2010   Database Attach method
If one is listed, you can remove the existing attached database by clicking on the actual database name and then clicking on the “Remove content database” check box.
image thumb16 Upgrading your Content Database to SharePoint 2010   Database Attach method
You will receive the above warning which is safe to ignore.  In this instance we are not deleting the actual database but disassociating it from the selected Web Application.  This is the exact same behaviour that was available to us in SharePoint 2007.
We can now proceed and attach our restored SharePoint 2007 database via the following stsadm command line;
stsadm -o addcontentdb -url  -databasename 
In my instance, the command looked as follows;
stsadm -o addcontentdb -url http://intranet.georgekhalil.com -databasename WSS_Content_Intranet
This will initiate the upgrade process as per the below screen capture.
image thumb17 Upgrading your Content Database to SharePoint 2010   Database Attach method
You will eventually receive a message similar to the below advising that the upgrade was completed albeit with errors in my case.  You should review the upgrade log file which is quite extensive and lengthy, and sure enough the errors were all related to missing features etc which I was already aware of.
image thumb18 Upgrading your Content Database to SharePoint 2010   Database Attach method
We can now verify that the upgrade was completed successfully by first navigating back to Central Administration / Application Management / Manage content databases, which now displays the upgraded database under my designated Web Application.
image thumb19 Upgrading your Content Database to SharePoint 2010   Database Attach method
We can also view the upgrade status page which is located within Central Administration / Upgrade and Migration / Check upgrade status.  The page will list all previous upgrade attempts and summarise the number of errors and warnings that may have been encountered.  In my case, there were a number of features that were not installed in the new SharePoint 2010 farm that the current portal relies on.  All of the upgrade logs are located in the following location, providing you with finer detail on the errors and warnings encountered;
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS
image thumb20 Upgrading your Content Database to SharePoint 2010   Database Attach method
By default, your site will retain it’s 2007 theme which Microsoft have done on purpose and you will need to manually change this 2010 if you wish to do so.  This is referred to as the “Visual Upgrade”, providing site administrators the ability to switch to the new look and feel at their own leisure.  This is a great move by the SharePoint product team as the new interface can be quite overwhelming to begin with.  Think about the move from Office 2003-2007 with the introduction of the new ribbon interface.   There was a week or two of frustration for most users before eventually getting the hang of it and finding the new interface to be more productive.
The below screen capture is my upgraded SharePoint 2010 portal running in “SharePoint 2007 theme mode”.
Capture12007 thumb Upgrading your Content Database to SharePoint 2010   Database Attach method
To perform the Visual upgrade, navigate to Site Actions / Visual Upgrade.
Capture12007a thumb Upgrading your Content Database to SharePoint 2010   Database Attach method

Here you are provided with 3 options in which I will select “Use the new SharePoint user interface, and don’t ask me again”.  After clicking on OK, I am now presented with the same site utilising the default SharePoint 2010 theme.
Capture12010 thumb Upgrading your Content Database to SharePoint 2010   Database Attach method
We have now successfully upgraded one of our SharePoint 2010 content databases housing our main Intranet portal, albeit with some missing web parts and features.  So what’s next on the agenda?  Upgrading My Sites of course!  This will involve attaching and upgrading your Shared Service Provider (SSP) to upgrade your user profile information followed by upgrading the My Sites content database.  This process will be left for a future post.
I hope you have found this 2 part series useful and I am interested hear how many of you have attempted a SharePoint 2010 upgrade and your experiences.
Resources from TechNet
Determine Upgrade approach (SharePoint 2010)
Microsoft SharePoint 2010 Products Upgrade Approaches – Diagrams
Upgrading to SharePoint Server 2010
Preparing to upgrade to SharePoint 2010 Products
Attach databases and upgrade to SharePoint Server 2010
_______________________________________________________________
Articles in this series
  1. Upgrading your Content DB to SharePoint 2010 – Part 1, The preupgradecheck
  2. Upgrading your Content DB to SharePoint 2010 – Part 2, Database Attach method

Configuring outgoing email in SharePoint 2010 with Exchange 2010 – Step by Step Guide


 my last article I provided you with a guide in setting up your SharePoint 2010 farm providing it with the capabilities in receiving incoming email which can then be delivered directly to your SharePoint libraries and or lists.  Today we wrap up our 2 part series on email flow in SharePoint 2010 in which I will provide you with another step by step guide in configuring your SharePoint Farm in order for it to send outgoing emails through your Microsoft Exchange server.
The environment
This article builds on the SharePoint Farm setup that I have documented here. It consists of the following servers which would form a common basis in most large organizations.
  • Windows 2008 R2 server running Active Directory Domain Services
  • Windows 2008 R2 server running SQL 2008 R2
  • Windows 2008 R2 server running SharePoint 2010 RTM
  • Windows 2008 R2 server running Exchange 2010 RTM
  • Windows 7 client running Office 2010 RTM
SharePoint 2010 allows you to configure any SMTP service including the one which I had setup in my previous article to send outgoing email, however we will utilise Exchange 2010 (same instructions apply for Exchange 2007) to provide email delivery to our end users.  Instructions on configuring the SMTP service (i.e. you are not using Microsoft Exchange in your environment) can be found on TechNet.
Creating a Receive Connector in Exchange 2010

If you recall from my previous article when we were configuring incoming email, we created a “Send Connector” in Exchange to forward the messages to the SMTP service that we had configured and installed.  This time round we will create a “Receive Connector” in Exchange 2010.
Launch the Exchange Management Console and navigate to Server Configuration / Hub Transport / New Receive Connector.  The New Receive Connector wizard is invoked.
Enter a descriptive name and ensure “Custom” is selected as the intended use.
image thumb39 Configuring outgoing email in SharePoint 2010 with Exchange 2010   Step by Step Guide
Click Next
Leave “All Available IPv4” in your Local Network settings unless you have specific Exchange IP requirements.
image thumb40 Configuring outgoing email in SharePoint 2010 with Exchange 2010   Step by Step Guide
Click Next
Edit the IP address of your SharePoint 2010 server.
image thumb41 Configuring outgoing email in SharePoint 2010 with Exchange 2010   Step by Step Guide
Click Next
image thumb42 Configuring outgoing email in SharePoint 2010 with Exchange 2010   Step by Step Guide
Click New
You will now notice that our SharePoint 2010 Outgoing mail connector is listed with our default Exchange 2010 Receive Connectors..  image thumb43 Configuring outgoing email in SharePoint 2010 with Exchange 2010   Step by Step Guide
We will now venture into its properties and make a minor permission change.  Click on the “Permission Groups” tab and select Anonymous users.
image thumb44 Configuring outgoing email in SharePoint 2010 with Exchange 2010   Step by Step Guide
Click Apply.
Configuring outgoing email in SharePoint 2010 Central Administration
Launch Central Administration and navigate to System Settings / E-Mail and Test Messages / Configure outgoing e-mail settings.
image thumb45 Configuring outgoing email in SharePoint 2010 with Exchange 2010   Step by Step Guide
Enter your Outbound SMTP server, i.e. your Exchange server where we created our receive connector and specify a From and Reply-to address.
image thumb46 Configuring outgoing email in SharePoint 2010 with Exchange 2010   Step by Step Guide
Click OK
Testing our configuration
Lets navigate to our SharePoint 2010 web application and create an Alert .  In my example I will create an immediate alert for Announcements.
Navigate to your Announcement List and click on List Tools/List and then click on “Alert Me” located in the ribbon interface.
image thumb47 Configuring outgoing email in SharePoint 2010 with Exchange 2010   Step by Step Guide
Select “Set alert on this list” and select your Alert options.  Ensure that you have “send notifications immediately” selected for testing purposes.
image thumb48 Configuring outgoing email in SharePoint 2010 with Exchange 2010   Step by Step Guide
image thumb49 Configuring outgoing email in SharePoint 2010 with Exchange 2010   Step by Step Guide
Click OK
You should receive your notification email that you have successfully subscribed soon after creating your alert.
image thumb50 Configuring outgoing email in SharePoint 2010 with Exchange 2010   Step by Step Guide
I will now create a Test Announcement to ensure that the actual alert is delivered.
image thumb51 Configuring outgoing email in SharePoint 2010 with Exchange 2010   Step by Step Guide
Alas! 5 minutes later (based on the immediate timer job definition schedule) we have received our email alert confirming that our SharePoint configuration with Exchange was successful.
image thumb52 Configuring outgoing email in SharePoint 2010 with Exchange 2010   Step by Step Guide
Did you know that you can also configure outgoing email for a specific Web application?  You might want to do this if you have multiple SharePoint Web Applications hosting specific site collections and would want a different From and or Reply Address setup.
Even though we are now going to configure outgoing email for a specific Web application, you are still required to setup the default farm outgoing email settings as per the above.
Configuring outgoing email for a specific Web application in SharePoint 2010 Central Administration
Launch Central Administration / Application Management / Manage Web Applications.
Select one of your Web Applications and then select “General Settings” from the Ribbon.
image thumb53 Configuring outgoing email in SharePoint 2010 with Exchange 2010   Step by Step Guide
Select “Outgoing E-Mail” from the drop down.
It will pick up your default farm settings that we entered in earlier in which you can now change the From and Reply-to address to something more specific for the selected Web application.
image thumb54 Configuring outgoing email in SharePoint 2010 with Exchange 2010   Step by Step Guide
Click OK
We are done!  I hope you have found this step by step guide in configuring outgoing email in SharePoint 2010 with Exchange useful, and stay tuned as we continue our journey in configuring our SharePoint 2010 Farm.