new features outgoing email 1920x1080

New features in outgoing email settings SharePoint 2016

New features in outgoing email settings SharePoint 2016

New features in outgoing email settings SharePoint 2016

Introduction of New features in outgoing email settings like non-default port can be set in the field “SMTP Server port”. which means SMTP server can use non-default ports.

SharePoint Server 2016 supports sending email to SMTP servers that use STARTTLS connection encryption.STARTTLS is an extension to plain text communication protocols, which offers a way to upgrade a plain text connection to an encrypted (TLS or SSL) connection instead of using a separate port for encrypted communication.

This Outgoing Email Settings supports sending mail to SMTP servers using STARTTLS connection encryption, therefore SMTP can use non-default ports. It does not support unencrypted connections.

The following list shows the SharePoint 2016 requirements that are needed to negotiate connection encryption with an SMTP server:

  • STARTTLS must be enabled on the SMTP server.
  • The SMTP server must support the TLS 1.0, TSL 1.1, or TLS 1.2 protocol.
  • The SMTP server must have a server certificate installed.
  • The server certificate must be valid. Typically, this means that the name of the server certificate must match the name of the SMTP server provided to SharePoint. The server certificate must also be issued by a certificate authority that is trusted by the SharePoint server.
  • SharePoint must be configured to use SMTP connection encryption.
Advertisements
Advertisements

Secure Sockets Layer (SSL) with SMTP Connection Encryption

To configure SharePoint to always use SMTP connection encryption, In SharePoint Central Administration website and under System Settings , Configure outgoing e-mail settings and set the Use Secure Sockets Layer (SSL) drop-down menu to Yes. To configure SharePoint to always use SMTP connection encryption in Windows PowerShell, use the Set-SPWebApplication cmdlet without the -DisableSMTPEncryption parameter.

For example:
$WebApp = Get-SPWebApplication -IncludeCentralAdministration | ? {
$_.IsAdministrationWebApplication -eq $true }
Set-SPWebApplication -Identity $WebApp -SMTPServer smtp.internal.contoso.com -OutgoingEmailAddress sharepoint@domain.com -ReplyToEmailAddress sharepoint@domain.com
Advertisements
Advertisements

Secure Sockets Layer (SSL) with No SMTP Connection Encryption

To configure SharePoint to never use SMTP connection encryption in SharePoint Central Administration, browse to System Settings > Configure outgoing email settings and set the Use Secure Sockets Layer (SSL) drop-down menu to No.

To configure SharePoint to never use SMTP connection encryption in Windows PowerShell, use the Set-SPWebApplication cmdlet with the -DisableSMTPEncryption parameter.

For example:
$WebApp = Get-SPWebApplication -IncludeCentralAdministration | ? {
$_.IsAdministrationWebApplication -eq $true }
Set-SPWebApplication -Identity $WebApp -SMTPServer smtp.internal.contoso.com -DisableSMTPEncryption -OutgoingEmailAddress sharepoint@domain.com -ReplyToEmailAddress sharepoint@domain.com
Advertisements
Add domain office 365_office 365 dns records

Add domain to office 365 and office 365 dns records

Advertisements
Advertisements

Add domain to office 365 and office 365 DNS records

Add domain to office 365 and office 365 dns records

This post describes about how to Add domain to office 365 and office 365 DNS records. You can follow the below steps in office 365 admin center.

  • Log in to Office 365 portal by following the link “https://portal.office.com“.
  • Navigate to “Admin->Setup->Domains” and click on “Add domain“.
Add domain to office 365 1917x511
  • A dialogue box will open. Enter domain name ex: spmcse.com in the field “Add a domain” and click on “Next“.
Add a domain 1919x685
Add a domain
  • You will proceed to “Verify domain” dialogue box where you will find options “verify by” as “TXT record” or “MX record”. Click on “TXT record”. There will be 3 records like “TXT name”, “TXT Value (ex : MS=ms*)”, “TTL”. Copy the “TXT value”.
verify domain 1345x745
  • Navigate to “domain hosting provider” site to update DNS records. Since my domain is from google, i navigate to google domain and click on “DNS” to “Configure DNS”.
Configure DNS 1040x393
  • Scroll down and identify “custom resource records“. you need to paste the “TXT value” here. Enter the details related to “TXT record” as per below screenshot and click on “Add“.
TXT record 846x310
TXT record1 846x328
Advertisements
Advertisements
  • Navigate to the Office 365 admin center again and click on “Verify” under “Verify domain” dialogue box. Verification process will start and will be completed successfully.
Verify domain 1342x772

Close the dialogue box. identify the different records related to “Exchange Online“, “Skype for business“, “Mobile device management for office 365” under the domain setup option which you will get on selecting the domain again as per below screenshot.

dns records 1917x977
  • Navigate to “domain hosting provider” site to update DNS records again. follow the same process for rest of the dns records as we did for “TXT value” of type TXT described above. Enter all dns records as per the screenshot below.
  • For Exchange Online
@ MX MS=ms**** 1h
@ TXT v=spf1 include:spf.protection.outlook.com -all 1h
autodiscover CNAME autodiscover.outlook.com. 1h
  • Skype for Business
sip CNAME sipdir.online.lync.com. 1h
lyncdiscover CNAME webdir.online.lync.com. 1h
_sip _tls SRV 100 1 443 sipdir.online.lync.com. 1h
_sipfederationtls _tcp SRV 100 1 5061 sipfed.online.lync.com. 1h
  • Mobile Device Management for Office 365
enterpriseregistration CNAME enterpriseregistration.windows.net. 1h
enterpriseenrollment CNAME enterpriseenrollment.manage.microsoft.com.  1h
dns records 1011x805
Advertisements
Advertisements
  • Once DNS records updated, navigate to office 365 Admin center and click on the domain to setup domain for next step. Select “I will manage my own DNS records” and click “DNS“. set up will be verified and will be completed finally.
Manage my own domain 917x669
domain setup complete 1315x514
Patching SharePoint Server 2013

Patching SharePoint Server 2013 step by step

Advertisements
Advertisements

Patching SharePoint Server 2013

Patching SharePoint server 2013 is one of the most difficult task that everyone want to know how to implement step by step. Watching this video, you will feel like its very easy to implement, but truly its equally risky. So careful while implementing the steps. Watch the below video for details.

      1. Download the KB from the URL as shown in the video.Patching SharePoint
      2. Extract files after download and you will find 3 files of extension ".exe , .cab, .cab".Patch 1321x705
      3. Copy this below code to notepad and save as ".ps 1" ###########################
        ##Ensure Patch is Present##
        ###########################
        $patchfile = Get-ChildItem | where{$_.Extension -eq ".exe"}
        if($patchfile -eq $null)
        {
        Write-Host "Unable to retrieve the file. Exiting Script" -ForegroundColor Red
        Return
        }########################
        ##Stop Search Services##
        ########################
        ##Checking Search services##
        $srchctr = 1
        $srch4srvctr = 1
        $srch5srvctr = 1$srv4 = get-service "OSearch15"
        $srv5 = get-service "SPSearchHostController"If(($srv4.status -eq "Running") -or ($srv5.status-eq "Running"))
        {
        Write-Host "Choose 1 to Pause Search Service Application" -ForegroundColor Cyan
        Write-Host "Choose 2 to leave Search Service Application running" -ForegroundColor Cyan
        $searchappresult = Read-Host "Press 1 or 2 and hit enter"
        Write-Hostif($searchappresult -eq 1)
        {
        $srchctr = 2
        Write-Host "Pausing the Search Service Application" -foregroundcolor yellow
        Write-Host "This could take a few minutes" -ForegroundColor Yellow
        $ssa = get-spenterprisesearchserviceapplication
        $ssa.pause()
        }elseif($searchappresult -eq 2)
        {
        Write-Host "Continuing without pausing the Search Service Application"
        }
        else
        {
        Write-Host "Run the script again and choose option 1 or 2" -ForegroundColor Red
        Write-Host "Exiting Script" -ForegroundColor Red
        Return
        }
        }

        Write-Host "Stopping Search Services if they are running" -foregroundcolor yellow
        if($srv4.status -eq "Running")
        {
        $srch4srvctr = 2
        set-service -Name "OSearch15" -startuptype Disabled
        $srv4.stop()
        }

        if($srv5.status -eq "Running")
        {
        $srch5srvctr = 2
        Set-service "SPSearchHostController" -startuptype Disabled
        $srv5.stop()
        }

        do
        {
        $srv6 = get-service "SPSearchHostController"
        if($srv6.status -eq "Stopped")
        {
        $yes = 1
        }
        Start-Sleep -seconds 10
        }
        until ($yes -eq 1)

        Write-Host "Search Services are stopped" -foregroundcolor Green
        Write-Host

        #######################
        ##Stop Other Services##
        #######################
        Set-Service -Name "IISADMIN" -startuptype Disabled
        Set-Service -Name "SPTimerV4" -startuptype Disabled
        Write-Host "Gracefully stopping IIS W3WP Processes" -foregroundcolor yellow
        Write-Host
        iisreset -stop -noforce
        Write-Host "Stopping Services" -foregroundcolor yellow
        Write-Host

        $srv2 = get-service "SPTimerV4"
        if($srv2.status -eq "Running")
        {$srv2.stop()}

        Write-Host "Services are Stopped" -ForegroundColor Green
        Write-Host
        Write-Host

        ##################
        ##Start patching##
        ##################
        Write-Host "Patching now keep this PowerShell window open" -ForegroundColor Magenta
        Write-Host
        $starttime = Get-Date

        $filename = $patchfile.basename

        Start-Process $filename

        Start-Sleep -seconds 20
        $proc = get-process $filename
        $proc.WaitForExit()

        $finishtime = get-date
        Write-Host
        Write-Host "Patch installation complete" -foregroundcolor green
        Write-Host

        ##################
        ##Start Services##
        ##################
        Write-Host "Starting Services Backup" -foregroundcolor yellow
        Set-Service -Name "SPTimerV4" -startuptype Automatic
        Set-Service -Name "IISADMIN" -startuptype Automatic

        ##Grabbing local server and starting services##
        $servername = hostname
        $server = get-spserver $servername

        $srv2 = get-service "SPTimerV4"
        $srv2.start()
        $srv3 = get-service "IISADMIN"
        $srv3.start()
        $srv4 = get-service "OSearch15"
        $srv5 = get-service "SPSearchHostController"

        ###Ensuring Search Services were stopped by script before Starting"
        if($srch4srvctr -eq 2)
        {
        set-service -Name "OSearch15" -startuptype Automatic
        $srv4.start()
        }
        if($srch5srvctr -eq 2)
        {
        Set-service "SPSearchHostController" -startuptype Automatic
        $srv5.start()
        }

        ###Resuming Search Service Application if paused###
        if($srchctr -eq 2)
        {
        Write-Host "Resuming the Search Service Application" -foregroundcolor yellow
        $ssa = get-spenterprisesearchserviceapplication
        $ssa.resume()
        }

        Write-Host "Services are Started" -foregroundcolor green
        Write-Host
        Write-Host
        Write-Host "Script Duration" -foregroundcolor yellow
        Write-Host "Started: " $starttime -foregroundcolor yellow
        Write-Host "Finished: " $finishtime -foregroundcolor yellow
        Write-Host "Script Complete"

      4. Save all files that is of extensions ".exe , .cab, .cab, .ps 1" in one folder.Patching SharePoint
      5. Open "SharePoint Management Shell".
      6. Navigate to the folder in which all files are stored and run the Powershell script.
      7. Next step is to run the config wizard. Please find the video in detail step by step further.

 

 

Advertisements
Advertisements