We have had a recurring problem since about October, where our emails through our SQL 2016 database will intermittently fail throwing this error through SQL Server Mail:
Message The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 3. Exception Message: Cannot send mails to mail server. (Failure sending mail.).
Again, some emails are successfully delivered on the first try, others are delivered on the 2nd try, and some fail to be delivered on both attempts.
We are using smtp.office365.com port 587 with basic authentication, SSL checked.
TLS 1.2 is enabled and showing correctly in email headers, but I am unable to see the cause as to why some emails are failing to go out, while others are successful.
I see no packet loss to the office smtp IP during one of these failures either. The server itself is updated to the most recent .NET framework as well.
Apologies if this information is inadequate, I am not too familiar with this whole concept and trying to learn as I go.