Solved

SQL Database Mail Office 365 Access error

Posted on 2014-01-14
6
1,450 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
Comment Utility
it mainly because firewall blocking/inspecting the traffic hence stop it.
0
 

Author Comment

by:rutc2008
Comment Utility
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
Comment Utility
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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

Accepted Solution

by:
rutc2008 earned 0 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Figured it myself :)
0

Featured Post

Why do Marketing keep bothering you?

Is your marketing department constantly asking for new email signature updates? Are they requesting a different design for every department? Do they need yet another banner added? Don’t let it get you down! There is an easy way to manage all of these requests...

Join & Write a Comment

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
If you don't know how to downgrade, my instructions below should be helpful.
This Experts Exchange lesson shows how to use VBA to loop through rows in Excel.  In order to sort, filter, and use database features, there needs to be a value in each column for every row. When data arrives with values missing, code to copy values…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now