Database mail configuration is not working with office365

Hi there!
I' looking for some help debugging a blocking error in our DEV environment.
We're currently using Windows 2008 R2 Standard, with IIS 7.5 and MS SQL Server 2012 Standard.
We're experiencing troubles while trying to use database mail in conjunction with Office365 SMTP.
We've generated our self-signed certificate, via IIS, and configured SMTP Virtual Relay Server with local (machine-name) and remote domain, following a step-by-step tutorial from configureoffice365.com.
We've also checked at the original MSDN tutorial, but it's been of little use (at least for us).
We would like to use our Office365 SMTP server to send out notifications and we're currently using Office365 working credentials to try the SMTP authentication, but we're stuck with this error (x is used to hide sensible data):
OutboundConnectionCommand [12/May/2014:13:35:08 +0100] "STARTTLS - SMTP" 0 8
OutboundConnectionResponse [12/May/2014:13:35:08 +0100] "- -?220 2.0.0 SMTP server ready SMTP" 0 27
OutboundConnectionCommand [12/May/2014:13:35:08 +0100] "EHLO -?SQLDEVxxxxx SMTP" 0 4
OutboundConnectionResponse [12/May/2014:13:35:08 +0100] "- -?250-xxxxx.outlook.office365.com Hello [x.x.x.x] SMTP" 0 58
OutboundConnectionCommand [12/May/2014:13:35:08 +0100] "AUTH - SMTP" 0 4
OutboundConnectionResponse [12/May/2014:13:35:08 +0100] "- -?334 xxxxx SMTP" 0 16
OutboundConnectionResponse [12/May/2014:13:35:14 +0100] "- -?535 5.7.3
Authentication unsuccessful SMTP" 0 37
Any idea or suggestion?
Thank you.

Hi giovannizuccaro,
According to your description, when you configure database mail in your SQL Server Management Studio,
 Please note that you enter the server to send to as localhost and the email address as the email you have on the office 365 Exchange online for the same account you used to configure the delivery configuration of the local SMTP server. And
you should choose anonymous authentication for SMTP authentication. Once finished the configuration, you can test the email sending, check if you are able to send emails to any external recipient using you Exchange online.
For more information, there is detail about how to configure SQL Database mail so send emails using Office 365 (Exchange Online):
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
If there are still some errors, I recommend you post your error message on the Office 365 forums (https://community.office365.com/en-us/f/default.aspx ), It is appropriate and more experts
will assist you.
Regards,
Sofiya Li
Sofiya Li
TechNet Community Support

Similar Messages

  • Mail application will not work with latest version mac 4.5

    mail application will not work with latest version mac 4.5

    You can get Firefox 3.6 from http://www.mozilla.com/en-US/firefox/all-older.html

  • Mail badge icon not working with exchange

    1. using exchange for my email
    2. have mail program on iphone 5 configured for this account
    3. using ios7
    4. Have lots of folders insdie inbox and all are being 'pushed'
    5. issue: when receive mail via 'mail' on iphone the mail badge does not popup with a number of 'unread' messages. At times it will show a number but most times it will not. I have to go inside of inbox and look for a number next to a name to see if i have any messages.
    6. all settings in notifications are 'on'
    7. Alerts set as banners
    What's the problem here?

    Don,
    If no one on this forum is able to assist then please post on the OS X Lion forum, Mail is considered part of OS X so you may find more information there. Here is a shortcut to the Lion Forum.

  • Mail v4.4 not working with Gmail

    Hey Guys,
    My Mail version does not seem to be working with Gmail. This issue seems to pop up from time to time after browsing the forums.
    I've tried going on gmail's website and making sure my mail app is configured correctly, and I've also re-installed my gmail account into the mail program just to be sure all is well.
    Can anyone offer any assistance? This is uber-frustrating.......

    Update......Somehow Mail sent 1/46 pending messages.....weird.

  • Apple Mail Still Will Not Work with Verizon

    Greetings to All:
    Sunday, March 24, 2013
    I've been trying to get Apple Mail to work with Verizon email for some years without success. I read the boards and find that this is not an uncommon problem. I received the new server settings for Verizon email today and eagerly plugged them in thinking this would solve my problems with receiving Verizon email, but, alas, it did not. Microsoft Outlook does a dandy job of pulling in Verizon email, but Apple Mail cannot. It's ridiculous that I should have to jump over to another email app to open one email account. All of the settings have been checked and double checked and the machine rebooted as the instructions mandate. 
    I don't understand what the problem is with Apple Mail and Verizon email. Apple Mail pulls in just about every other email service without flaw. Does anybody out there have any insight into this?
    -Dr. John

    I am beyond frustrated with this issue.  I've just spent 90 minutes on the phone with verizon support and it couldn't be fixed.  I was told to call Apple.  HAH!  "Please call during normal business hours."  Would anyone know what they are???!
    I did NOT have trouble until I changed the servers, per Verizon's request. I am so happy I didn't futz aroudn with my iPad.

  • New Lightroom 4 mail feature does not work with Hotmail

    Hi,
    I have tested the new mail feature today.  Unfortunatelly, it does not work well with my hotmail account. 
    The mail is send by lightroom and received in my hotmail mailbox, but the photo is not visible.  The tekst in the messages is readable, but instead of the downloaded photoI only see a red cross.
    Anyone an idea what the reason is ?
    thanks
    Rudy

    Hi Stone Pan,
    Thanks for answering. 
    I do not see any error message and the received mail contains a correct text message, only the picture is not visible in the mail.  I tried to send a Photo with the email preset on small and normal but without success.
    Kind regards,
    Rudy
    Edit :
    I have tried to send a photo to the hotmail email adress of a friend and it works, text and photo are visible.  Conclusion is that the reason for not showing the photo is not a Lightroom 4 problem.  The reason should be something on my own computer, any suggestions are welcome.

  • Mail conversation view not working with Listserv

    Hello,
        For the most part the conversation view in Apple Mail works great.  The one place it does not work is for a listserv I am part of.  I get a lot of emails form this group, they all come from the same address, so it is the same address in the To: field, the From: field is different for each message.  I expected all the messages to be grouped by the same subject line but they are not.  Other emails that I get that are NOT from a listserv group perfectly, so I feel it has to be something specific to getting emails from a listserv. 

    Update......Somehow Mail sent 1/46 pending messages.....weird.

  • Mail configuration in not working in Production.

    Hi,
    We are using SAP ECC6 with EHP 3 version with MSSQL2005 DB and WINDOWS2008r2 server.
    For sending mails from SAP , we configured SCOT and SMTP configuration in all servers like DEV,QAS and PRD.
    When i am sending mail from DEV and QAS its working fine, but in my PRD server mailis not going.and its giving below error message
    Message cannot be transferred to node SMTP due to connection error (final) errior message number 816
    all the configuration done as per the SAP standard document only, and its working fine in DEV and QAS.
    below i am giving all the profile information and scot configuration ,SMTP port information and all..
    Please check and help me to resolve this error.
    This same parameters working in DEV and QAS...same parameters are there in PRD also.
    Please check and help me.

    Hi,
    Check the connection from the SAP system to node SMTP. Perhaps the node is not assigned to the correct destination. If so, correct this in Customizing.  In production operation, it is advisable to reroute provisionally to another node.  You should therefore notify your system administrator.
    XS816 error are likely caused by a problem with the connection between the SAP system and mail server.
    It may happens due to the following, ( try to check port is open or not )
    1. Check SMICM that ICM is running or not.
    2. Check configuration with the help of note SAP Note 421359.
    3. Check whether SMTP service/port are active and are correct.
    4. Check these SAP Note 757804, 634006, 455140.
    Thanks
    KH

  • Database link name does not work with JDBC.

    Hi,
    I am new to Oracle database. I run a query from a Java class and after waiting around 20 minutes then it returns "ORA-04021 timeout occurred while waiting to lock DBMS_LOCK" error. The query is:
    select r2.EXTERNAL_ID, d.EXTERNAL_ID AS ISIMPORTED from (select external_id from results r1
    where r1.*run_id = ?* and not exists
    (select id from results@cdata where external_id = r1.external_id and run_id = r1.run_id)
    order by r1.external_id) r2 left join dummymaindata d on r2.external_id =d.external_id;
    In this query I use a database link to access another database. The strange thing is at least for me, if I use "@cdata" it always gets stuck for at least 20 minutes and end with an exception "ORA-04021 timeout occurred while waiting to lock DBMS_LOCK" but if I use any combination of the database link name instead of the "@cdata" for example "@CDATA", "@Cdata", "@cDaTA", "@CdaTa" etc., it works fine without any exception.
    This starnge behavior is only with this query for using the database link name while with any other query it does not matter that how I do write the db link name.
    Kindly answer.
    Arshad..

    Hi,
    1) What is your Oracle, JDBC driver, target Oracle (to which you are connecting through DB link) versions?
    2) Are you using DBMS_LOCK somewhere in the code? PL/SQL procedures on the source/target servers?
    3) Can you construct a complete reproducible test case?

  • Dynamic Distribution Groups not working with Office365 Mailboxes

    Ok so my problem is this. I am creating new dynamic distribution lists based on office location with the option to look at the notes section in AD and add an additional office if a user needs to be on both lists.
    We have recently started using Office365 for some users and they need to get the emails too.
    When I create the group initially using:
    New-DynamicDistributionGroup -Name "Location-London UK" -OrganizationalUnit "domain.net/Groups/Email Groups/Locations" -RecipientContainer "domain.net/Our Users" -RecipientFilter {(RecipientType -eq 'MailUser') -or (RecipientType
    -eq 'UserMailbox') -and (Office -eq 'London') -or (Notes -eq 'London')}
    It creates the group limiting to the Accounts with London as their office but it includes every Office365 mailbox we have also.
    There is a DDG in our EMC for an office in Hong Kong but I am not aware of who created it.
    Its filter says:
    ((((((RecipientType -eq 'MailUser') -or (RecipientType -eq 'UserMailbox'))) -and (Office -eq 'HongKong'))) -and (-not(Name -like 'SystemMailbox{*')) -and (-not(Name -like 'CAS_{*')) -and (-not(RecipientTypeDetailsValue -eq 'MailboxPlan')) -and (-not(RecipientTypeDetailsValue
    -eq 'DiscoveryMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'ArbitrationMailbox')))
    This group includes only the users with Hong Kong as well as Office365 users with Hong Kong as their office location
    Ive tried to recreate this DG but cant as using Powershell still makes groups with the Office265 users in them.
    The only way ive successfully created a London DG is by using ADSIedit to copy the msExchQueryFilter from Hong Kong to London and change the Office Name to London
    Any help would be appreciated

    For your recipient filter, use the following:
    {((RecipientType -eq 'MailUser') -or (RecipientType -eq 'UserMailbox')) -and
    ((Office -eq 'London') -or (Notes -eq 'London'))}
    See if that works ... that's effectively how the Hong Kong one is built.  Make sure you get the extra parentheses (I bolded them), they should make the difference.

  • Internet Accounts (Mail/Calendar) still not working with Google account

    Half a year after the release of Mavericks, it's still not possible to use Apple Mail and Calendar with my Google account. There's always the same error message:
    There was a problem setting up the account.
    An unknown error occurred.
    I don't understand why this problem couldn't be fixed yet.

    I have the same setup and it works just fine.
    Reboot into Safe Mode and try again. Post back with the result.

  • IPhone Configuration utility not working with iPhone 5

    Hi,
    I recently bught an iPhone 5 to my son.
    Need to install a .mobileconfig file to restrict some features (the same profile I used before for his iPodTouch)
    I running 10.8 on my mac and it's an iPhone 5 running iOS 6.1.4
    I got iPhoneConfigurationUtility 3.5 on apple support web site
    But imposible to activate "Install" a profile when I plug the iPhone. If I clic on "Install" nothing appends.
    The name of the iPhone is well recognised, but a big question mark is beside it's name.
    Could you help me.
    Many thanks

    An entire community just for the iPhone:
    https://discussions.apple.com/community/iphone

  • Windows 8.1 Mail app does not sync with the Office 365 account

    My company has recently switched to Office 365. Windows 8.1 Metro Mail app does not work with Office365 account. When I switch to IMAP it works but that is soon going to be disabled and is not compliant with the company policy.
    I can add the account and it also pushes the security policies but it does not sync email at all. Says account is not available. The tablet shows up on the mobile devices on the office 365 and I could also remote wipe it.
    It seems everything works except basing email sync. What could be the issue?

    there's a bunch of reading here:
    http://blogs.technet.com/b/exchange/archive/2013/10/18/supporting-windows-mail-8-1-in-your-organization.aspx
    There might also be some useful discussions in the dedicated O365 forum:
    http://community.office365.com/en-us/forums/default.aspx
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • C3 did not work with all the types of routers

    Hi!
    My problem is with the C3 (Hungarian 03.36 Vodafone), that the e-mail program is not working with all the wlan routers. My home router is Asus WL-520GC and with it I get communication error, but with a Linksys or a Tplink router everything is good. How can it be?
    (I ve heard it from outhers too)
    (both WPA2personal and DHCP)
    I tried it with factory settings, but same problem: communication error.
    Pls help! 

    Solved: I had to upgrade the firmware of the router.
    It works

  • Database Mail not working with SQL Server Agent

    I'm running SQL Server 2005 Standard edition 64 bit with SP2 on a 64 bit machine. 
    Database mail does not work with SQL Server Agent.  When I configure SQL Server Agent to use database mail the test email button is greyed out and inactive therefore I cannot send emails using operators or for jub success failure etc. 
    I've read that there was supposed to be a fix for this with SP1 but I have SP2 and still receive the same problem.  Please can somebody help as I do not wish to use SQL Mail as a work around due to this becomming redundant in future versions of SQL Server.
    Kind Regards

    The problems solved
    steps:
    1)we create a mail profile at at Managment->Database Mail ,of SQL Managment
    2)we set this account as "default" at Managment->Database Mail -> Configure Database Mail -> Manage profile security
    3)At tab "Alert System" of SQL Server Agent properties , we check the "Enable mail profile" , Mail System=Database Mail, Mail profile = "the profile we already create"
    4)we create a new operator at "Operators" of sql agent, where at "notification options" -> "Email name" we put the mail where we want to sent the agent the mails at failured job
    5)We go at a specific job, at tab "Notifications" ,we check the "email" check box and then we choose the operator we just create, at the text box next to check box.
    I hope not to forget something
    Thank You all for the help

Maybe you are looking for

  • Error while runing configuration CRS

    Dear All, After setup, Cluster ware run configuration automically. The first statement fail, and I get some error in the logfile: D:\oracle\product\10.2.0\crs\cfgtoollogs\cfgfw\CfmLogger_2007-07-20_11-55-16-AM.log INFO: Creating new CFM connection IN

  • How do I open pdfs in iBook and not Adobe reader? (OS X Mavericks)

    On iOS devices, I can save and read pdfs in iBooks. How do I do it in the new application for OS X Mavericks?

  • Parallel to SPI converter

    I'm looking for Parallel to SPI converter component in order to convert SPI from DAC and ADC after opto-couplers to 60x-bus of MPC875. If you know device that can fit my needs please advice me Tkanks Roman.

  • Connecting airport extreme to home theater

    I was told you could connect your airport extreme to your theater and play music for you imac wirelessly.. Does anyone know to do this or where I can find info . Thanks

  • How do I get rid of picasa?

    how do I delete picasa and anything related to it off my phone?