Solved

SQL Database Mail Office 365 Access error

Posted on 2014-01-14
6
1,567 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 37

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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

685 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