Cannot get db mail to work via SMTP Relay for Office 365 in SQL Server 2014 on Windows Server 2012 R2

Our company recently moved to Office 365 which mean our on premise exchange server went away as well with the move.  I am trying to configure my new sql server (OS-Windows Server 2012 R2, DBMS- SQL 2014 Std Edtion).  After some searching I found
this article (http://blogs.technet.com/b/meamcs/archive/2013/02/25/how-to-configure-sql-database-mail-so-send-emails-using-office-365-exchange-online-a-walkthrough.aspx) and have followed these steps exactly, but to no avail.  I did some further research
on the SMTP relay I setup and found a way to test it (listed here http://technet.microsoft.com/en-us/library/dn592151(v=exchg.150).aspx at the bottom of the article).  If I drop the email.txt file in the pickup folder, it gets sent out no problem.
 I have configured my db email exactly as describe here(http://blogs.technet.com/b/meamcs/archive/2013/02/25/how-to-configure-sql-database-mail-so-send-emails-using-office-365-exchange-online-a-walkthrough.aspx).  But keep getting an unable to connect
to SMTP server error.  I have even tried completely shutting down firewall to see if that is the issue and multiple restarts.  Any ideas how to get this to work on Office 365?
DB Mail error log:
Date 6/10/2014 10:28:41 PM
Log Database Mail (Database Mail Log)
Log ID 46
Process ID 2196
Mail Item ID 19
Last Modified 6/10/2014 10:28:41 PM
Last Modified By xx
Message
The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 2 (2014-06-10T22:28:41). Exception Message: Cannot send mails to mail server. (Failure sending mail.).

Hi,
I followed this blog and got the below error message in the Database Mail Log.
“The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 2 (2014-06-11T19:34:00). Exception Message: Cannot send mails to mail server. (Mailbox unavailable. The server response was: 5.7.1 Unable to relay
for [email protected]).”
If you are getting the same error message, you can try the below steps to resolve the issue.
1. Open the IIS 6.0 management console. Right click on the SMTP server and open the properties window.
2. Click on the Access tab, click Relay button under Relay restrictions. loopback IP address (i.e 127.0.0.1).
Then the email should be sent out from Database Mail without problem.
Thanks.
Tracy Cai
TechNet Community Support

Similar Messages

  • Does anyone know if iCloud is offline? I cannot get my mail to work this AM

    Does anyone know if iCloud is offline? I cannot get my mail to work this AM

    Have latest version of iTunes installed and running. Also make sure you have internet access working and can access Apple websites. Also, make sure you don't have any entries in your hosts file referring to gs.apple.com....If your not sure about how to do that, go ahead and do the rest first. You can come back to that later.....Plug in phone. Put phone in DFU mode.(google put iphone in DFU mode for instructions) Then restore the phone in iTunes by highliting your device in the left column and click on the Restore button. The latest iOS version is 4.3.3. That's what iTunes will restore it to. When it's done restoring, iTunes will ask if you want to restore from a backup or setup as a new phone. I would use the Setup as a New Phone option. Once it's done, you should have a clean install of the iOS and an operating phone, as long as there are no hardware issues with it.

  • How to use multiple mail sending address in SMTP relay for exchange online

    We have one SMTP relay configured with [email protected] credentials. one oracle application automatically shoots mail to users using this [email protected] to users. So if recipient reply on auto-generated mail it goes to mailbox of [email protected] (so that application
    team see and reply to any query raised by recipient). 
    Now my requirement is, I want to notify users about their password expiry before 10  days (something like that) I have made the script and tested it in lab. But the main requirement is I want to use [email protected] mail ID for sending mail. And if any recipient
    reply on the auto-generated mail it goes to [email protected] mailbox (which is managed by different team).  
    So the query How can I use two different mailbox enabled IDs for sending mails on a single SMTP Relay server
    Thanks
    Pankaj Sharma

    Thanks Ed and Mavis for the reply and suggestion, but here scenario is different. 
    We have one SMTP relay configured with [email protected] credentials. one oracle application automatically shoots mail to users using this [email protected] to users. So if recipient reply on auto-generated mail it goes to mailbox of [email protected] (so that
    application team see and reply to any query raised by recipient). 
    Now my requirement is, I want to notify users about their password expiry before 10  days (something like that) I have made the script and tested it in lab. But the main requirement is I want to use [email protected] mail ID for sending mail. And if any recipient
    reply on the auto-generated mail it goes to [email protected] mailbox (which is managed by different team).  
    So the query is can I use two different mailbox enabled IDs on a single SMTP Relay, If yes then how..
    Thanks
    Pankaj

  • Cannot get iCloud mail to work even though I have an iCloud account already

    I am trying to setup Mail and Notes on an iMac (i3) with OS X 10.8.2.  When I go into Preferences > iCloud > check "Mail", I get a prompt for an email address.  I enter my existing iCloud email account and click OK but it then asks me to click on "Create" to create the account so I do.  It then comes back and says that email already exists and to pick a new one.
    There is no option for using an already existing account so there is no way to setup mail.
    When I try to go to Mail via the web based iCloud.com interface I am able to login with my iCloud account but when I click on Mail it tells me "iCloud Email Needed" and to create a new email by turning on Mail in the iCloud settings.
    It appears Apple has really messed up on iCloud as they did on MobileMe as they did with Mac.com.  That aside, how do I get access to my mail?

    Here are the instructions to set up the mail manually, it's for Snow leopard but works in ML, try this.Once Mail is working you should be able to enable Notes.
    I haven't tried this so here's hoping it works for you, read it first, follow all instructions as printed.

  • Cannot get g-mail to work on my Centro

    I bought a Centro last weekend.  I tried to set it up in the versamail application but whenever I clidked on get mail I received an "out of memory error" (there are 62mb left of memory so that is clearly not the issue).  I spoke with Verizon wireless for an hour and they couldn't figure it out so they suggested I exchange it for another one, suggesting that particular phone was broken.  Well the next phone had the same issue.  So I called Palm support and was on teh phone with them for 2 hours, they couldn't help.  I really don't want to go to a Blackberry but if I can't get it to work, that is what I am going to have to do....any suggestions?  I also tried downloading the versamail upgrade two times that is supposed to help patch through g-mail but I never got the 77 code suggesting it had downloaded corectly....any suggestions?
    Thanks!
    Post relates to: Centro (Verizon)

    I got Versa to receive my gmail messages, but all it would give me is the headers and two lines of the message...when I would say to download the whole message it would go through the download process, but still only give me the first two lines....which needless to say is pretty useless.  I switched to using the ExpressMail instead which downloads the whole message, except that it seems to have an issue with timing out and anytime it tries to check my email when I'm out of reception (which lately in Miami is almost all the time) it loses my password and won't download emails automatically anymore until I manually go in and use the menu to receive new messages....the whole thing is very annoying.
    Post relates to: Centro (AT&T)

  • Cannot get Apple Mail to work on Mavericks - Synching not working intermittently with Gmail account

    Like many others, I am having issues with Apple Mail on Mavericks.  I have a gmail account and an account that uses IMAP on godaddy domain.  When I do things on my Macbook, they are more or less OK although sometimes there is a delay when deleting mail and having it synch up with my other devices.  However, if I go to my iphone and go thru my mail and then go to my macbook in the evening, i am finding that all of my mail is showing up like I never looked at it before.  All mail is showing up unread, deleted e-mails are in my inbox, etc.  I installed the mavericks update for mail last week, and still things are not working.  I really need some help in resolving this issue.  I expect this kind of stuff from Windows OS upgrades...not Apple

    Like many others, I am having issues with Apple Mail on Mavericks.  I have a gmail account and an account that uses IMAP on godaddy domain.  When I do things on my Macbook, they are more or less OK although sometimes there is a delay when deleting mail and having it synch up with my other devices.  However, if I go to my iphone and go thru my mail and then go to my macbook in the evening, i am finding that all of my mail is showing up like I never looked at it before.  All mail is showing up unread, deleted e-mails are in my inbox, etc.  I installed the mavericks update for mail last week, and still things are not working.  I really need some help in resolving this issue.  I expect this kind of stuff from Windows OS upgrades...not Apple

  • Cannot get voice mail to work properly.

    I have a Galaxy 5S,  I have deleted all my voice mail messages but the screen still says there is one. When I push 7 it tells me there r none to delete. I have shut my phone down 3 times hopi g rebooting would help, but doesnt

    Perhaps you can try to take out the sim card after powering down.  Wait a min or 2 and reinsert SIM then power on.  If that doesn't work, sounds like it is another of the widespread issues and bugs in 5.0, unless you haven't updated to 5.0 yet.  On a related note, but different phone, I had a similar issue and called my VM and slowly went through option 7 to delete messages just to make sure.  I also had to have a data connection, for some reason, for the icon to disappear.

  • I cannot get my ExportPDF to work when it has for over eight months.

    Everytime I submit a file to convert I get the message "An error occurred while trying to access this service". It is not a network setting as I can log in on any of my co-workers PCs and convert everytime.  So I am wondering is this a setting on my individual PC?  Any light shed on this situation would be most appreciated.

    Hi wlboden,
    Please contact the customer service and they will let you know the reason and will help you to make your service active.
    Visit the below mentioned link to chat with customer service.
    http://helpx.adobe.com/contact.html?product=acrobat-com&topic=signing-in-to-or-managing-my -account#
    Regards,
    Ajlan Huda.

  • My iPhone has been badly damaged and I cannot get the screen to work. I want to do a backup to transfer to my new phone but the backup will not work because the phone is locked. Can I input my lock code to the phone via the computer to allow a backup?

    My iPhone has been badly damaged and I cannot get the screen to work. I want to do a backup to transfer to my new phone but the backup will not work because the phone is locked. Can I input my lock code to the phone via the computer to allow a backup?

    Sorry, no.

  • My iphone has lost connection to the server; I cannot get e-mails.

    My iphone has lost connection to the server; I cannot get e-mails. What can I do to fix that?

    I recently put on a PowerPoint presentation at DU, in Denver Colorado; signed on as DU guest to access Internet link.  SInce then I haven't been able to get e-mail on my Iphone - Cannot Get Mail, Server Stopped Responding.  I tried all previous suggestions, such as rebooting phone, updating software etc.  I went to MacBook Pro and tried logging on to yahoo e-mail.  Apparently there was a security risk to my e-mail account so Yahoo locked up my account.  I reset my password, it was verified through text message, and Voila it worked.  Don't forget you also have to change this on your Iphone: go into settings; Mail, Contacts, Calendars; click on your e-mail browser, then account and enter your new password, click done and it will verify on you phone as well.  Hope this helps!!!

  • HT1430 I cannot get yahoo mail.  The message asked for password for yahoo many times.

    In order to use Yahoo! Mail, please turn Private Browsing off. Please go to Settings » Safari » Private Browsing, and turn it off
    I cannot get yahoo mail nor send email on iPad 3.  I have OS 6 just upgraded.  It keeps on asking for password.  I think my yahoo email was also hacked to compound the problem.  Please help.

    I get this warning now To. Never saw it in last 5 years and 4 iPhones. Cannot get yahoo small biz email access anymore via iPhone on safari web login because of this same warning. Typically , either yahoo or apple screwed up and changed something that effects millions and think nothing of it. (battery gate in all the iPhone 4/4s comes to mind here)
    As you can tell I "used" to be an apple fan but after this iPhone 4s dies (prematureally of course) I will be getting my first android phone and see flash and the rest of the hidden Internet that apple kept from myself the paying customer.

  • I have installed Mountain Lion 10.8.2 but still cannot get email from my work exchange account. I'd appreciate any help.  Thank you.

    I have installed Mountain Lion 10.8.2 but still cannot get email from my work exchange account. I'd appreciate any help.  Thank you.

    You can go to the Apple online store and purcahse a copy of Mountain Lion.  This will give you a redemption code, which you can use to download Mountain Lion from the App Store.  Unfortuantely, I'm not aware of any other way to legally purchase it.  I have never seen Apple release Muontain Lion on DVD.
    In terms of Apple Service, they just need the serial number of the machine to check the purcahse date.  It is usually correct, to within a few weeks.  A quick Google search should give you the correct number to dial.
    I hope this helps.

  • I have installed Mountain Lion 10.8.1 but still cannot get email from my work exchange account. I'd appreciate any help.  Thank you.

    I have installed Mountain Lion 10.8.1 but still cannot get email from my work exchange account. I'd appreciate any help.  Thank you.

    I would delete the account and try to re-enter it. Also, you have to let your firm's IT department know that you want to sync work email on your personal devices before they actually work.

  • TS3276 I'm now having trouble getting mac mail to work on my mac. The mobile me account works great on iphone and ipad but it won't connect to my mail account. Password is correct. What else can I do? Using OS10.68

    I'm now having trouble getting mac mail to work on my mac. The mobile me account works great on iphone and ipad but it won't connect to my mail account. Password is correct. What else can I do? Using OS10.68

    HI,
    The Apple IDs from @mac.com and @me.com (Older MobileMe and more recent iCloud Names) are also Valid AIM Screen names.
    Any other sort of Apple ID is not a Valid AIM Name.
    A Google ID that is associated with Google Mail Account (And has "Talk" enable on your Google Settings) can be used in iChat as  Jabber Name/ID.  (Google Run  Jabber server).
    Jabber and AIM are different IM Services and it is not easy or straight forward to add Buddies from one Service to the Buddy List of another.  (As A Starting point consider it "impossible")
    iChat 4 and 5 have links to the registration page of @Mac.com here with a "Get an iChat Account" button in the add (Account) screen  (You select @mac.com or MobileMe and then press the Button - Choosing AIM and then pressing the button used to lead to the AIM registration page but AIM moved their page).
    Apple IDs can be any valid email (or an @mac.com or iCloud registration)
    Therefore you could make a Google ID into an Apple ID.
    However this will not be a valid AIM Screen Name the way @mac.com or MobileMe/iCloud ones are.
    Valid AIM Screen Names in Table (pic)
    7:46 PM      Monday; December 5, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • I cannot get GPS Only to work on my ipad3 (4g version, but not on an active cell plan, and wifi off).  Is there some new requirement in 7.1 or 7.1.1 to have cell and/or wifi enabled for GPS to work? I am testing with MotionX

    It seems like I cannot get GPS only to work on my ipad3 (4g version, but not on an active cell plan, and wifi off).  Is there some new requirement in 7.1 or 7.1.1 to have cell and/or wifi enabled for GPS to work? I am testing with MotionX, garmin blueChart mobile, and a GPS monitoring tool. All show no signal. If I turn on cell and wifi,  it says I get gps signal, but can't tell if that is from the GPS chip, or just from cell and wifi only (maybe with some gps mixed in)?  Any ideas on how to get iPad working with GPS only??

    Roger that.  Thanks for your time.
    System:
    Windows 7 64bit
    Processor: AMD phenom IIX4 965
    RAM:  Gskill Ripsaw F3-12800CL7D-4GBRM (2-2GB sticks)
    GPU:EVGA Classified Nvidia GeForce GTX 560 Ti 448 core
    PSU: Kingwin 1000W laser gold (LZG-1000)
    Yes. tried the one ram stick, no go.  I have been trying to boot off/install the windows 7 disk but am unable to get to the point where windows starts installing after its gathering information portion of the install.  I can get to the disk selection screen of the install with the WD HD on SATA port 2 but then get the "cant install messages" when I try to select the Vertex 3.  Yes I can see the Vertex 3 Drive as well as the WD drive at this point.  some times I have to hit "scan" a couple of times.

Maybe you are looking for