Since moving over to Office 365 our SQL Database Mail has stopped running. At first i thought i knew what this problem was. As we no longer used our on site exchange server as everything is now running via Office 365. I would simply have to replace the local SMTP path, port to the online Office 365 path. Along with the correct email account and password.
I've logged onto the Office 365 admin portal and retrieved the correct SMTP path entered the path in the SQL Database Mail Configure page, ran a test email but nothing happens. The error i can see within the database mail log is as follows:
Message
The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 18 (2014-01-14T09:24:37). Exception Message: Could not connect to mail server. (An attempt was made to access a socket in a way forbidden by its access permissions 132.245.194.249:587).
)
Any advice would be appreciated.
Microsoft SQL Server 2005Microsoft 365
Last Comment
rutc2008
8/22/2022 - Mon
Jian An Lim
it mainly because firewall blocking/inspecting the traffic hence stop it.
rutc2008
ASKER
Thanks for the response. I'll get our firewall guys to have a look. I'll let you know what they tell me.
Jeffrey Kane - TechSoEasy
You cannot just point the settings in your SQL app to Office 365 because SQL will not send out via TLS as required by Office 365.