You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2a1745f
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/relational-databases/database-mail/database-mail-configuration-objects.md
+11-10Lines changed: 11 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
---
2
-
description: "Database Mail Configuration Objects"
3
-
title: "Database Mail Configuration Objects | Microsoft Docs"
2
+
description: "Describes the Database Mail configuration objects for configuration of the settings that Database mail should use when sending an email from your database application or SQL Agent."
3
+
title: "Database Mail Configuration Objects"
4
4
ms.custom: ""
5
-
ms.date: "03/14/2017"
5
+
ms.date: "07/26/2022"
6
6
ms.prod: sql
7
7
ms.prod_service: "database-engine"
8
8
ms.reviewer: ""
@@ -30,7 +30,6 @@ helpviewer_keywords:
30
30
- "Database Mail [SQL Server], profiles"
31
31
- "profiles [SQL Server], Database Mail"
32
32
- "accounts [Database Mail]"
33
-
ms.assetid: 03f6e4c0-04ff-490a-bd91-637806215bd1
34
33
author: WilliamDAssafMSFT
35
34
ms.author: wiassaf
36
35
---
@@ -56,11 +55,13 @@ ms.author: wiassaf
56
55
57
56
- Windows Authentication: Database Mail uses the credentials of the [!INCLUDE[ssDEnoversion](../../includes/ssdenoversion-md.md)] Windows service account for authentication on the SMTP server.
58
57
59
-
- Basic Authentication: Database Mail uses the username and password specified to authenticate on the SMTP server.
58
+
- Basic Authentication: Database Mail uses the username and password specified to authenticate on the SMTP server.
59
+
60
+
- Note that basic authentication for Exchange Online is being deprecated. For more information, see [Basic Authentication and Exchange Online](/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online#re-enabling-and-opting-out-of-proactive-protection).
60
61
61
62
- Anonymous Authentication: The SMTP server does not require any authentication. Database Mail will not use any credentials to authenticate on the SMTP server.
62
63
63
-
Account information is stored in the **msdb** database. Each account consists of the following information:
64
+
Account information is stored in the `msdb` database. Each account consists of the following information:
64
65
65
66
- The name of the account.
66
67
@@ -86,7 +87,7 @@ ms.author: wiassaf
86
87
87
88
- The password to use for authentication to the e-mail server, if the e-mail server requires authentication.
88
89
89
-
The Database Mail Configuration Wizard provides a convenient way to create and manage accounts. You can also use the configuration stored procedures in **msdb** to create and manage accounts.
90
+
The Database Mail Configuration Wizard provides a convenient way to create and manage accounts. You can also use the configuration stored procedures in `msdb` to create and manage accounts.
90
91
91
92
92
93
## <aname="DBProfile"></a> Database Mail Profile
@@ -96,9 +97,9 @@ ms.author: wiassaf
96
97
97
98
A profile may be public or private.
98
99
99
-
**Public profiles** are available for all members of the **DatabaseMailUserRole** database role in the **msdb** database. They allow all members of the **DatabaseMailUserRole** role to send e-mail using the profile.
100
+
**Public profiles** are available for all members of the **DatabaseMailUserRole** database role in the `msdb` database. They allow all members of the **DatabaseMailUserRole** role to send e-mail using the profile.
100
101
101
-
**Private profiles** are defined for security principals in the **msdb** database. They allow only specified database users, roles, and members of the **sysadmin** fixed server role to send e-mail using the profile. By default, a profile is private, and allows access only to members of the **sysadmin** fixed server role. To use a private profile, **sysadmin** must grant users permission to use the profile. Additionally, EXECUTE permission on the **sp_send_dbmail** stored procedure is only granted to members of the **DatabaseMailUserRole**. A system administrator must add the user to the **DatabaseMailUserRole** database role for the user to send e-mail messages.
102
+
**Private profiles** are defined for security principals in the `msdb` database. They allow only specified database users, roles, and members of the **sysadmin** fixed server role to send e-mail using the profile. By default, a profile is private, and allows access only to members of the **sysadmin** fixed server role. To use a private profile, **sysadmin** must grant users permission to use the profile. Additionally, EXECUTE permission on the **sp_send_dbmail** stored procedure is only granted to members of the **DatabaseMailUserRole**. A system administrator must add the user to the **DatabaseMailUserRole** database role for the user to send e-mail messages.
102
103
103
104
Profiles improve reliability in cases where an e-mail server becomes unreachable or unable to process messages. Each account in the profile has a sequence number. The sequence number determines the order in which Database Mail uses accounts in the profile. For a new e-mail message, Database Mail uses the last account that sent a message successfully, or the account that has the lowest sequence number if no message has yet been sent. Should that account fail, Database Mail uses the account with the next highest sequence number, and so on until either Database Mail sends the message successfully, or the account with the highest sequence number fails. If the account with the highest sequence number fails, the Database Mail pauses attempts to send the mail for the amount of time configured in the **AccountRetryDelay** parameter of **sysmail_configure_sp**, then starts the process of attempting to send the mail again, starting with the lowest sequence number. Use the **AccountRetryAttempts** parameter of **sysmail_configure_sp**, to configure the number of times that the external mail process attempts to send the e-mail message using each account in the specified profile.
0 commit comments