Configure an SMTP relay for Office 365

                           How can we Configure an internal SMTP Relay for Office 365 ???

Now we have a question in front of us, Ho! How can we Configure an internal SMTP relay for Office 365 ???

The Answer should start from why you need to configure an SMTP relay ? Let us come to the point, now a days most of the SMB customers are moving out their email environment to office365, but still their are many applications/devices which needs to send emails to users/admins etc.

I can give you an example on these scenario that, you might have scanners\copier where you need to send the scan document to respective or a particular email ID and their might be any backup application which needs to report the Job completion or job failed/warnings to the backup administrator through Auto configured email settings.

If you have a local/on-premise Exchange you can do this by configure internal email connector and asking the Application/Device to send the emails using on-premise exchange. But coming to cloud its completely different.

Every thing over the Cloud will go in a secured way, it wont directly accept the emails\request, Here it is time to introduce a SMTP relay server in your on-premise environment and instructing the "Application\Email enabled devices(Scanners) to send emails to internal SMTP Relay server where it will pass on the received emails to Office 365 servers in a secured way.
SMTP relay for Office 365
SMTP relay for Office 365
Step 1: Configure SMTP Server
Install the SMTP and all its dependency roles and features through  Server Manager.

SMTP and all its dependency roles


Step 2: Get the Office 365 SMTP Server Settings from Outlook Web App


  • Access the Outlook Web App, go to Settings, then click Options\See All Options.
  • In the left navigation pane, click Account, click My Account and in the Account Information area, click Settings for SMTP access.



  • Note down the SMTP settings.

Step 3: Configure the On-premise SMTP Relay:

  • Open IIS 6.0 Manager,  right click and  select the properties of Default SMTP Virtual Server.
  • Click the Access tab and then click on Relay.
  • In the Select which computers may relay through this virtual server area, click Only the list below, and then enter the IP addresses of the on-premises LOB devices and application servers that will relay through the SMTP server.
  • Now go to the Access tab, click Authentication, make sure that the Anonymous access check box is selected and then click OK.
  • Now click on the Delivery tab, click Advanced, and then, under Smart host, enter the fully qualified domain name (FQDN) of the SMTP server which we obtain in Step 2.
  • On the Delivery tab, click Outbound Connections. 
  • In the TCP Port box, type 587, and then click OK.
  • On the Delivery tab, click Outbound Security, and then follow these steps:
    > Click Basic Authentication.
    > In the User name box, type the user name of the Office 365 user account that you want to use for sending emails from LOB devices.
    > In the Password box, type the password of the Office 365 user which you have provided in above step.   
    > Select the TLS encryption check box, and then click OK.


    Now settings on Relay server properties are completed, comeback and expand Default SMTP Virtual Server, you will see Domains on left side navigation, right-click Domains > New > Domain and add the domain hosted in Office365.

    Example: Testwindow.com (or) *.com (or) *.Testwindows.com etc and many more based on your requirement.





 Now your SMTP Relay setup is ready and you can test this configuration by sending a test email to office365 user using Telnet.

I can explain it in next blog post,  how to use Telnet command to test email to Office365 using On-premise SMTP Relay.



                      Key Points  -  Microsoft Lync Server 2010 Server Roles


This article provides a brief overview of the server roles and the general features they provide:









  • Front End Server and Back End Server
  • A/V Conferencing Server
  • Edge Server
  • Director
  • Mediation Server
  • Monitoring Server
  • Archiving Server
Let us go with Key points:

Front End Server and Back End Server

Front End Server:
The Front End server is the central server role in Lync Server 2010. It runs on a single server in Lync server 2010 Standard Edition and is collocated with the Back End Server configuration. In the Enterprise Edition, the Front End Server as a separate server from the Back End Server. The Front End Server role:

• Provides SIP registrar and Presence aggregation for handling client regisration and publishing aggregated user presence to other users
• Provide conferencing services such as audio/video conderencing, Web conferencing, Application sharing, IM conferencing and dial-in Conferencing.
• Manages the Central Management Database that deploy the configuration data to all other Lync Server 2010 servers. If multiple Lync Server pools are deployed, only the first deployed pool will contain Front End Server that maintain the CMS.
• Provides device and client updates for Lync Server 2010 phone devices and Lync Server 2010 clients.

Back End Server
The Back End Servers are database servers running Microsoft SQL Server that provide the database services for the Front End pool. The Back End Servers serve as backup stores for the pool’s user and conference data, and are the primary stores for other databases such as the Response Group database. Information stored in the Back End Server databases includes presence information, users' Contacts lists, conferencing data, including persistent data about the state of all current conferences, and conference scheduling data.

A/V Conferencing Server
The A/V Conferencing Server role can now be in a separate pool to enhance scalability. It is usually collocated with the Front End Server. This collocation is central processing unit (CPU)-intensice in large installations that heavily use audio/video conferencing. Therefore, it may be necessary to seperate the A/V conferencing server role from all the other functions that a Front End Server Manages.

The Audio/Video conferencing enables real-time audio and video communication among users, if they have required client devices, such as headsers for audio conferences and webcams for video conferences. When you deploy conferencing, you can enable users to use both Web conferencing and A/V conferencing or just Web conferencing

Edge Server
The Edge Server in Lync Server 2010 should be placed on the perimeter network, and it manages all external connections from remote users, federated users, Public IM network users, or external users, who have been invited to join Web conferences. The main functions of the Edge Server role are to:
• Provide access edge services by handling both inbound and outbound SIP signaling, Presence, and IM exchange.
• Provide Web conferencing edge services by enabling external access to Web conferences that are running on the internal server.
• Provide audio/video edge services by ensuring that audio and video can securely traverse not only within the company firewall, but also beyond the firewall where remote, federated, or anonymous users may be located.
• Facilitate remote desktop sharing and file transfers.

Director
The Director authenticates internal and remote users, and redirects them to the correct server pool, if you have deployed several server pools in the organization. The Director:
• Authenticates internal users and redirects them to the appropriate pool; and it is not involved in the rest of the user session.
• Authenticates external users and stays in the signaling path for the rest of the user session.
• Provides users with their Backup Registrar address before redirecting them to the appropriate pool if a Back Registrar is configured.

Mediation Server
The Mediation Server role can be collocated with the Front End Server, run as a single server, or run as a pool of servers. The primary role of the Mediation Server is to translate and add additional services to third-party internet protocol (IP) private branch exchange (PBXs) or SIP-PSTN Gateways. The other tasks are to:
• Strip or add encryption on signaling and media.
• Transcode the codec that the PBX or gateway uses, for example, G.711, to a Microsoft-supported codec, for example, RTAudio or Siren, which is licensed by Microsoft from Polycom for audio conferencing. Note that Siren is only used in backwards compatibility scenarios.
• Add firewall traversal capabilities or interactive connectivity establishment (ICE) support for calls between PBX and Gateways that do not support these capabilities.

Monitoring Server
The two main functions of the Monitoring Server are to collect Quality of Experience (QOE) monitoring information and Call Details Records (CDR) information. The QOE reports are sent to Lync Server 2010 whenever an audio or video session has ended. However, for CDR records, any session such as peer-topeer,audio/video conferencing, instant messaging, desktop sharing, or Web conferencing, is collected. For organizations where you are planning to deploy Lync Server 2010, you should recommend the use of the Monitoring Server because it is a key troubleshooting tool where users utilize audio/video in either an Enterprise Voice, PC Audio only and/or conferencing scenario.

Archiving Server
The plan for deploying the Archiving Server is for legal compliance reasons to archive instant messaging and conferencing information. Lync Server 2010 allows organizations to archive Web conferences also. However, Lync Server 2010 does not archive the video and audio portions of conversations or conferences.

Also on Technet:  http://social.technet.microsoft.com/wiki/contents/articles/16967.key-points-of-microsoft-lync-server-2010-server-roles.aspx