Question

iPhone Activesync working, but getting Unexpected Exchange mailbox Server error HTTP status code: [400]. Verify that the Exchange mailbox Server is working correctly.

Asked by: ccolburn1

I have made the necessary modifications to my standalone SBS 2003 server and loaded Exchange SP2 in order to get the sync to work on my two iPhones.  However, I only get email when I go into my mail app and it connects to refresh (so push is not working, only fetch) and more importantly and possibly the cause, I am getting over 9,200 errors per day stating:

Unexpected Exchange mailbox Server error: Server: [servername.domainname.local] User: [username@domainname] HTTP status code: [400]. Verify that the Exchange mailbox Server is working correctly.

I have read through a number of articles on EE with no solution that seems to apply to this particular issue.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-09-09 at 10:42:13ID24718961
Tags

Exchange 2003

,

Activesync

,

iPhone

Topics

Exchange Email Server

,

Server Applications

Participating Experts
3
Points
500
Comments
32

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Iphone and ActiveSync Problems
    I am trying to sync Iphone with Exchange on SBS2003 Premium R2 Most fo standard issues has been resolved, see http://www.experts-exchange.com/Apple/Hardware/iPhone/Q_24081674.html On the server (Windows 2003 SBS), I get event ID: 3005 Unexpected Exchange mailbox Server err...
  2. Syncing an iPhone to SBS 2003 via Activesync
    I have an iPhone that I am trying to sync to an SBS 2003 SP2 w/ Exchange box. However, I pretty much get stuck after making sure activesync is on the server. Port 443 is open at the firewall, and we don't have an SSL cert. Trying to connect, however, I get errors. Any id...
  3. Iphone sync with SBS 2003
    We have a client that we can not get their Iphones to sync to their Exchange mailboxes. OMA and OWA work fine. Setting up a test account on the server works fine. Sending and receiving email to and from the test account works fine. The test account was created by copying ...
  4. iPhone and Active Sync
    Hello All, Well I have a weird issue with our company iPhones and ActiveSync. We have 2 seperate sites that both run SBS 2003, so they both have Exchange 2003. Many of the higher ups in company use iPhones with their accounts on the Primary site. All users are experienci...
  5. Disable iPhone ActiveSync
    Yes, that's right. I am looking to disable iPhones from using Exchange ActiveSync to connect to our Exchange 2007 server. Due to the latest iPhone SMS vulnerability I would like to disable the feature until we can verify that the phone has been updated once the patch is relea...
  6. iPhone inconsistent ActiveSync
    Basically All Active Sync Testers Internal and external of our network work indicating everything is working as intended. Firewall ports 443 are open on our GTA GB-OS firewall. We are using Intrusion Prevention. For whatever reason the iphone has intermittent access to act...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: Narayan_singhPosted on 2009-09-09 at 11:04:56ID: 25293936

Are you able to sync iPhone ?

Do the following

Open IIS Manager

Navigate to Websites -> right click on "Default web site" and click on properties.

On the web site tab click on advanced

Under "Multiple identities for this website" click on the default entry and click on edit

IP address: (All Unssigned), TCP port:80, Host Header Value: "Blank".

click ok and restart IIS Admin Service (warning will disconnect clients) to be sure!

 

by: alanhardistyPosted on 2009-09-09 at 11:06:46ID: 25293950

Please check your settings are as per my troubleshooting Activesync guide:

You need to make sure that you have Exchange Server 2003 Service Pack 2 Installed - http://www.microsoft.com/downloads/details.aspx?FamilyID=535BEF85-3096-45F8-AA43-60F1F58B3C40&displaylang=en

Open Up Exchange System Manager - Start, Programs, Microsoft Exchange, System Manager.  Expand Servers, Right-Click your server and choose properties.  This will display whether you have SP2 installed or not.

If you have installed SP2, check on https://testexchangeconnectivity.com running the Exchange Activesync check.  You may need to tick the Ignore Trust for SSL check box if you have a self-signed certificate as these always fail.

Ensure that port 443 is open and forwarded on your firewall to your Exchange server.

Please check and mirror the settings below - Open up IIS and expand the default website then Click on the Directory Security Tab:
 
Exchange Virtual Directory
·         Authentication = Integrated & Basic  
·         Default Domain = NETBIOS domain name - e.g., yourcompany  
·         Realm = yourcompany.com  
·         IP Address Restrictions = Granted Access  
·         Secure Communications = Require SSL NOT ticked  

Microsoft-Server-Activesync Virtual Directory
·         Authentication = Basic  
·         Default Domain = NETBIOS domain name - e.g., yourcompany  
·         Realm = NETBIOS name  
·         IP Address Restrictions = Granted Access  
·         Secure Communications = Require SSL NOT ticked  

For SBS 2003 - please check this MS article - http://support.microsoft.com/kb/937635

Make sure that the name on the certificate that you are using matches the FQDN that you are connecting to e.g., mail.microsoft.com.  If it does not match, either re-issue the certificate if you created it yourself, or re-key the certificate from your SSL certificate provider.

Ensure that the IP for the Default Website is set to All Unassigned

Then issue IISRESET from Start, Run

Ensure that Forms Based Authentication is NOT turned on under HTTP Virtual Server under Exchange Protocols.  If it is  read http://support.microsoft.com/kb/817379

ASP.NET should be set to version 1.1 for all virtual directories listed above.

 

by: diggisaurPosted on 2009-09-09 at 12:31:41ID: 25294720

Also are you using a external SSL or a home grown SSL. Ive seen issue like this when people use homegrown SSL certificates. If you are, I recommend purchasing a SSL from an external like GoDaddy.com (cos they are cheap there.)

 

by: ccolburn1Posted on 2009-09-09 at 12:51:08ID: 25294885

@diggisaur - I am using a go daddy SSL cert.  @alanhardisty I will run through your check list tonight and see if any of these items fix it.  Weirdest thing.  The sync works (mostly).  I get my contacts, calendar and if I go to my inbox, email comes in.  Just getting 9000+ errors a day, plus email is not "pushed" to device.  Only when I go to Inbox and it connects do I get new emails.  Kind of defeats the purpose of the whole thing.

 

by: alanhardistyPosted on 2009-09-09 at 13:00:22ID: 25294980

Is your activesync on the phone set to As Items Arrive or something else?

Click on Start, Programs, Activesync, Menu, Schedule.

Check Peak and Off-Peak items and make sure they are set to As Items Arrive.

 

by: alanhardistyPosted on 2009-09-09 at 13:00:59ID: 25294988

Sorry - that's for Windows phones.   Please ignore my last comment.

 

by: alanhardistyPosted on 2009-09-09 at 13:04:41ID: 25295032

Click on Settings, Mail Contacts Calendars, Fetch New Data.  Is Push set to On?

 

by: ccolburn1Posted on 2009-09-09 at 13:05:43ID: 25295041

@alanhardisty Yes, it is.  Fetch is set to Manual.  

 

by: alanhardistyPosted on 2009-09-09 at 13:08:58ID: 25295081

Okay - Can you please check the server settings under Exchange System Manager, Global Settings, Mobile Services.

Right-click Mobile Services and choose properties.

What is ticked?

Under Device Security - what is ticked?

 

by: diggisaurPosted on 2009-09-09 at 13:46:21ID: 25295389

Can you attempt to factory reset one phone and just configure ActiveSync first to see what happens? Might be some conflict with the existing fetch settings.

 

by: ccolburn1Posted on 2009-09-11 at 15:13:32ID: 25313891

Well, I got the event ID 3005 to stop.  I went through all the check lists provided by (@alanhardisty / 09/09/09 01:06 PM, ID: 25293950) but was still get the event 3005 every few seconds for both iPhones showing up in the log.  So, I rebooted the server.  Now, I no longer get 3005 every few seconds and it has been replaced by 3015 (IP-based AUTD failed to initialize because...) every few seconds.  Error pasted below.  Researching now...

Event Type:      Error
Event Source:      Server ActiveSync
Event Category:      None
Event ID:      3015
Date:            9/11/2009
Time:            2:53:18 PM
User:            N/A
Computer:      <COMPANYNAME>
Description:
IP-based AUTD failed to initialize because the processing of notifications could not be setup.  Error code [0x80004005].  Verify that no other applications are currently bound to UDP port [2883], or try specifying a different port number.

 

by: alanhardistyPosted on 2009-09-11 at 15:17:41ID: 25313925

Please stop the DNS server service and then restart it.  This quite often grabs the AUTD port.

There is a KB article to reserve ports to stop this happening - I'll search for it and come back in a sec.

 

by: alanhardistyPosted on 2009-09-11 at 15:21:49ID: 25313955

 

by: ccolburn1Posted on 2009-09-11 at 15:22:17ID: 25313958

Okay, found a fix for 3015 on this site by restarting DNS and now the 3005 is back.  I am out of ideas and have run through all that I have recieved here so far.  iPhone is a blast!!!

 

by: alanhardistyPosted on 2009-09-11 at 15:29:38ID: 25314013

Have you checked the settings detailed in the KB article at the end of my initial posting?

http://support.microsoft.com/kb/817379

Extract from: http://social.technet.microsoft.com/Forums/en-US/exchangesvrmobility/thread/66a33f3a-d945-42e2-ac80-3e4244f9b258

Sure enough, adding a IP Address, TCP Port, Host header value identity entry with the host header left blank, that is (Default, 80,<empty>) under the IP Address Advanced section for the Default Web Site properties for my IIS server definately makes a difference.

Do you have the above setting?

 

by: Narayan_singhPosted on 2009-09-20 at 16:57:28ID: 25379554

i have seen many such cases where even though mobile device is syncing we still get 3005 upon sync. and most of the cases were resolved by updating Massync.dll, setting exclusions on AV,removing Host header from Default website ,remove ip from Default web site and make it run under all unassigned.removing IP from exchange-oma if it is there. sometimes even reseting the virtual directories (method 2 KB 883380).

error 3005 is very generic error for ActiveSync which doesnt always mean issue with ActiveSync.

To obtain latest hotfix for Massync.dll
http://support.microsoft.com/kb/957191

 

by: ccolburn1Posted on 2009-09-28 at 08:24:06ID: 25440123

I have checked and / or implemented all recommendations still with no resolve to the HTTP 400 error.  I have now disabled push as the constant back and forth was draining the battery on the iPhone at an alarming rate (10% every hour).  

I may have to go back to the drawing board on this one.  

 

by: ccolburn1Posted on 2009-09-30 at 11:06:11ID: 25461578

I can make the error stop by turning the Push function off on the iPhone.  As soon as I turn it back on, the Event ID 3005 errors start back up with the HTTP 400 errors.  They come at a rate of about 4,500 per device per day.  Apple was absolutely no help and basically indicated it had to be an issue on the Microsoft side.  Any suggestions other than those above?

 

by: alanhardistyPosted on 2009-09-30 at 11:10:16ID: 25461614

Can you try one more thing before you have no hair left please!

Under Exchange System Manager> Global Settings> Mobile Services, right-click and choose properties.

Click on Device Security on the General Tab.

Click on Exceptions on the Device Security Settings Window.

Add your user account details to the exceptions.

Try syncing again and see if you get the errors again please.

Fingers crossed.

 

by: ccolburn1Posted on 2009-09-30 at 11:26:00ID: 25461766

No dice, the dreaded HTTP 400 errors began as soon as I turned push back on.  I will say this, before this last suggestion you had, I had not enabled the "Enforce password on device" option.  I enabled it, then added my user account to the exceptions.  Same issue occurs.  

The other settings from this area are all checked:
Enable user initiated synchronization
Enable up-to-date notifications via SMTP and Text Messaging
- Enable notifications to user specified SMTP addresses
Enable Direct Push over HTTP(s)

Any issues you can see with those settings?  Again, all are presently enabled (checked)

 

by: alanhardistyPosted on 2009-09-30 at 11:28:48ID: 25461794

Have you downloaded the free iPhone App from the iStore - Activesync Tester - and tried running it?

Might throw up something - might not.  Nothing ventured - nothing gained!

 

by: ccolburn1Posted on 2009-09-30 at 11:33:49ID: 25461849

Yes, I have and it passes with flying colors.  Originally, the issue I had was I could not get email to connect at all, until I loaded SP2 for Exchange.  After I loaded that, the Activesync Tester worked and I could add and use my Exchange account.  Just Push doesn't play well in the sandbox.

 

by: alanhardistyPosted on 2009-09-30 at 11:36:46ID: 25461879

Have you wiped the iPhone back to factory settings and set it up again yet?

If not - is that a viable option?

 

by: ccolburn1Posted on 2009-09-30 at 11:41:15ID: 25461921

I have done so a couple of times, plus get this on more than one iPhone.  Could do the wipe again.  I am also going step by step through your check list again.  BlackBerry and Windows Mobile never gave me this much grief.  

 

by: alanhardistyPosted on 2009-09-30 at 11:43:57ID: 25461959

No - my iPhone just got on with it!

What OS version are you using on the iPhones?

 

by: ccolburn1Posted on 2009-09-30 at 11:45:30ID: 25461984

The latest update which is out, 3.1 plus the recent AT&T MMS carrier update.  Issue persisted through all.  Started at 3.0 at the beginning of the month.

 

by: ccolburn1Posted on 2009-09-30 at 11:54:43ID: 25462074

Okay, just walked through your checklist again.  The last item states verifying the ASP.NET is set to 1.1 for all Vir Dir.  How / where do I do this verification?

 

by: alanhardistyPosted on 2009-09-30 at 12:20:45ID: 25462328

On the default website virtual directories.  There will be a tab, which presumably appears if yoy have asp.net 2, so naturally, this suggests you don't have it installed.

This then leads on to the question - do you have any Windows updates that have not been installed, critical as well as recommended?

Please check and install, then reboot, check again and repeat until there are none left.

 

by: ccolburn1Posted on 2009-09-30 at 13:13:30ID: 25462962

Working the patches, etc. now.  There are some outstanding.  Will advise when completed.

 

by: alanhardistyPosted on 2009-09-30 at 13:15:44ID: 25462994

Have fun!

 

by: ccolburn1Posted on 2009-09-30 at 19:28:49ID: 25465585

No dice. All patches and recommended updates and their patches applied. Nothing pending now, yet the error persists.

 

by: alanhardistyPosted on 2009-10-01 at 00:08:16ID: 25466488

Okay - re-read the question!  All of it!

HTTP 400 is a Bad Request error.

So the error stops happening when the Push feature is turned off.

If you manually sync - does the error appear?

Does push on both iPhones causes the error?

Have you got a Windows Mobile phone you can test to see if the push works without errors?  This would help rule out the server or the iPhones as the potential cause.

What router do you have protecting you from the evil world outside? (Make / Model please)

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...