SSL enabled database mails in error

Ashwan 521 Reputation points
2021-10-09T20:58:35.04+00:00

Hi am trying enable the SSL as bellow in SQL server 2016 sp2 EE database mails . How ever when I enabled emails will not delivered. When disabled emails are working fine. .net framwork install 4 and above. Any one has experience is and any resolution ?
139084-capture.png

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,680 questions
{count} votes

2 answers

Sort by: Most helpful
  1. YufeiShao-msft 7,056 Reputation points
    2021-10-11T06:00:57.01+00:00

    Hi @Ashwan

    What are the error you get? Please check your error log.
    Your question may have something to do with TLS. I found a similar case and discussion by others: https://dba.stackexchange.com/questions/213608/enable-tls-1-2-for-sql-server-2016-database-mail
    Perhaps the 2 new registry settings here can fix your problem:

    Windows Registry Editor Version 5.00  
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319]  
    "SchUseStrongCrypto"=dword:00000001  
       
    [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319]  
    "SchUseStrongCrypto"=dword:00000001   
    

    And if you enable TLS 1.2 for SQL Server communication, the following registry you should set correctly:

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2]   
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client] "DisabledByDefault"=dword:00000000 "Enabled"=dword:00000001   
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server] "DisabledByDefault"=dword:00000000 "Enabled"=dword:00000001    
    

    https://support.microsoft.com/en-us/topic/kb3135244-tls-1-2-support-for-microsoft-sql-server-e4472ef8-90a9-13c1-e4d8-44aad198cdbe

    0 comments No comments

  2. Ashwan 521 Reputation points
    2021-10-13T04:38:10.52+00:00

    hi Yufeishao-msft
    Thank you for the valued comment
    In my server has no entries related to "SchUseStrongCrypto"=dword:00000001/ "SchUseStrongCrypto"=dword:00000001 . is that good to edit regedit ?