Hello.
We are running SQL Server 2012 on a Windows 2012 R2 platform. I have configured Database Mail to send notifications to a group email account when backup jobs complete for the Full and Differential backups, and when the jobs fail for the log backups. The setup is identical to that on another server, and I have confirmed that notifications should work by running the test email.
The problem is that no emails are being sent when a given job completes. A check of the history has the following entry: NOTE: Failed to notify '<group name>' via email. I have modified the recipient to a single user, as opposed to a group, email account, and the result is the same.
I have confirmed the run_value for Database Mail XPs is set to 1, and for good measure, I did restart the program. One disparity that I noticed is principal profile entries between the two servers. The profile on the system that works is the following:
principal_id principal_name profile_id profile_name is_default
2 guest 1 SQLAccount 1
While that on the system that is not working is as follows:
principal_id principal_name profile_id profile_name is_default
2 guest 2 RODB Admins 1
If the profile_id and profile name is different, could that be the cause of the problem? If so, how can this be corrected?