I am trying to figure out something.
I have a Stored Procedure that is executing the sp_send_dbmail system stored procedure to send an email through our open relay (locked down to the IP address of the SQL Server) on our exchange server.
We are BCC on every email sent by this Stored Procedure and we receive them just fine. When I check the select * from msdb..sysmail_allitems
it shows the last 12 emails sent as "failed". That table shows the following error note:
The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 5 (2015-08-26T11:20:10). Exception Message: Cannot send mails to mail server. (Mailbox unavailable. The server response was: 5.7.1 Unable to relay). )
When we were testing the system, the sent_status was showing "sent". When we first went live, it was also showing "sent". Now it is showing "failed" on every new email that is processed.
Any recommendations on where I can look to resolve this issue?
Thanks, jlimited