Solved

SQL Database Mail Office 365 Access error

Posted on 2014-01-14
6
1,508 Views
Last Modified: 2014-03-05
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.
0
Comment
Question by:rutc2008
  • 3
  • 2
6 Comments
 
LVL 36

Expert Comment

by:Jian An Lim
ID: 39781276
it mainly because firewall blocking/inspecting the traffic hence stop it.
0
 

Author Comment

by:rutc2008
ID: 39781740
Thanks for the response. I'll get our firewall guys to have a look. I'll let you know what they tell me.
0
 
LVL 74

Expert Comment

by:Jeffrey Kane - TechSoEasy
ID: 39892183
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.

So, instead, you need to configure an SMTP relay.  Follow this article to do just that:
http://blogs.msdn.com/b/momalek/archive/2013/02/25/how-to-configure-sql-database-mail-so-send-emails-using-office-365-exchange-online-a-walkthrough.aspx

Jeff
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Accepted Solution

by:
rutc2008 earned 0 total points
ID: 39894463
Thanks for all the advice guys. Turned out our mail filtering provider was blocking the public IP address of our exchange server from relaying SMTP requests. As soon as they allowed SMTP requests to go through. The heavens literally opened.

Thanks again.

Paya
0
 
LVL 74

Expert Comment

by:Jeffrey Kane - TechSoEasy
ID: 39896479
you never said you had an onsite Exchange Server... so no way we could have known how to help.
0
 

Author Closing Comment

by:rutc2008
ID: 39905876
Figured it myself :)
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Office 365 Login Audit Report 1 36
Access 2016 7 35
MS hosted exhange security 2 35
Sql Server group by 10 29
Find out what the Office 365 disclaimer function is, why you would use it and its limited ability to create Office 365 signatures.
Office 365 is currently available in five editions. Three of them are for business use: Office 365 Business Essentials, Office 365 Business, and Office 365 Business Premium. Two of them are for home/personal use: Office 365 Home and Office 365 Perso…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question