-
Notifications
You must be signed in to change notification settings - Fork 10
Configure Database Mail
Previous Backup Service Master Key | Manual Configuration | Configure SQL Mail Next |
---|
FineBuild can Configure Database Mail for use by SQL Server Agent.
The Database Mail functionality is used by the SQL Server Agent instance. It uses SMTP to send and receive mail, and avoids the reliability shortcomings experienced when using MAPI-based mail.
SQL Server must be running using a Domain service account for Database Mail to be configured.
The Database Mail configuration relates to Process Id 5BB and is controlled by the parameters below:
SQL Version | Parameter | FULL Build | WORKSTATION Build | CLIENT Build |
---|---|---|---|---|
SQL2019 | /SetupDBMail: | Yes | Yes | N/A |
SQL2017 | /SetupDBMail: | Yes | Yes | N/A |
SQL2016 | /SetupDBMail: | Yes | Yes | N/A |
SQL2014 | /SetupDBMail: | Yes | Yes | N/A |
SQL2012 | /SetupDBMail: | Yes | Yes | N/A |
SQL2008R2 | /SetupDBMail: | Yes | Yes | N/A |
SQL2008 | /SetupDBMail: | Yes | Yes | N/A |
SQL2005 | /SetupDBMail: | Yes | Yes | N/A |
In order to maintain compatibility with older versions of SQL FineBuild, the parameter ConfigDBMail can also be used.
FineBuild also uses the following parameters to help configure Database Mail:
Parameter | Default Value | Description |
---|---|---|
/Mailserver: | see text | Name of the Mail Server to be used. This will default to the nearest Exchange Server in the Domain if one can be found. |
/DBMailProfile: | Public DB Mail | Database Mail profile name. |
FineBuild will automatically:
- Enable the use of Database Mail
- Create a Default Public database mail profile
- Create a Database Mail account
- Link the account to the profile
The following steps show what you would have to do for manual Database Mail configuration. FineBuild does all of this work for you automatically.
SQL Server must be running using a Domain service account for Database Mil to be configured.
- Use SQL Server Management Studio to run the following command to enable the use of Database Mail:
SP_Configure 'Database Mail XPs', '1'
-
Navigate to Management -> Database Mail, right-click and select Configure Database Mail
-
On the Select Configuration Task page, click Next
-
If a message similar to the following appears, click Yes
-
Set the following New Profile value then click on Add
Option Value Profile name Public DB Mail -
Set the following New Database Mail Account values, then click OK
Option Value Account Name SQL Alerts E-mail address service account email address Display name SQL Server instance name Server name SMTP or Exchange server name Windows authentication Selected Notes:
a) The service account email address will always take the form of serviceaccount@dnsdomain (E.G. servgb_sqldb_0001@ROOT.local)
b) The Exchange server name can be obtained from your Support Centre
c) If an SMTP server is used, either Basic or Anonymous authentication must be used
d) Site standards may require This server requires a secure connection (SSL) to be checked
-
On the New Profile page, click Next
-
On the Manage Profile Security page, clear the Show only existing public profiles field.
Set the following Manage Profile Security values, and then click Next
Option Value Public Checked Default Profile Yes -
On the Configure System Parameters page, click Next
-
On the Complete the Wizard page, click Finish
-
On the Configuring page, all operations should show Success. Click Close to finish.
Copyright FineBuild Team © 2012 - 2019. License and Acknowledgements
Previous Backup Service Master Key | Top | Configure SQL Mail Next |
---|
Key SQL FineBuild Links:
SQL FineBuild supports:
- All SQL Server versions from SQL 2019 through to SQL 2005
- Clustered, Non-Clustered and Core implementations of server operating systems
- Availability and Distributed Availability Groups
- 64-bit and (where relevant) 32-bit versions of Windows
The following Windows versions are supported:
- Windows 2022
- Windows 11
- Windows 2019
- Windows 2016
- Windows 10
- Windows 2012 R2
- Windows 8.1
- Windows 2012
- Windows 8
- Windows 2008 R2
- Windows 7
- Windows 2008
- Windows Vista
- Windows 2003
- Windows XP