Articles tagged with exchange

Snow Leopard and Exchange 2007 Integration Notes

Some notes on my experience so far with Apple’s 10.6 Snow Leopard OS and Microsoft Exchange Server 2007:

Setup

  • It’s brain-dead. It uses Autodiscover, so e-mail and password is all you need. You get prompted if you’d like it to also configure iCal and your address book.

  • I haven’t tried from home yet, but the external server path is not filled out. Internal picks up EWS/Exchange.asmx URL just fine, but external is blank. I double-checked our Exchange server and this parameter isn’t filled out so that makes sense. The difference here is Outlook assumes the external is the same as internal if this value is blank, but it appears Apple Mail will not. Be sure to set your –ExternalURL parameters on the virtual directories appropriately.

Mail

  • Responses to meetings come across as an .ics attachment, no special functionality here. This is especially bad if someone proposes a new time.

  • The Exchange RSS Feeds folder does not integrate with the RSS feeds section in Mail. This would have been nice.

  • Name suggestions are offered from the GAL and your contacts.

  • Rules do not sync.

  • UM voice mails have a built in media control. My codec is set to G.711 and I see embedded QuickTime controls in the message for playback.

  • The actually listing of your notes is displayed in the Marker Felt font. It’s horrendous and tough to read.

  • No out of office assistant.

  • You can add multiple Exchange accounts.

iCal

  • You can schedule meetings and invite attendees.

  • You can view free/busy details for attendees.

  • iCal does not differentiate between people and resources as attendees.

  • You can view responses for meetings. Accepted, tentative, declined or unknown.

  • Tasks sync to iCal “To-Dos”. The default view shows all completed items. Hit the iCal preferences to change this view.

  • You can view Delegate calendars and grant access to your calendars and tasks.

  • Name suggestions are offered from the GAL and your contacts.

Address Book

  • My contacts came across just fine.

  • I can’t see the GAL for some reason. The URL in the account settings looks correct, but the GAL is empty. Really strange considering I get GAL-suggestions when typing names in other applications.

I’m sure there are more to come, but despite some of the caveats this is still a huge improvement over Entourage. I’m looking forward to the Outlook for Mac client coming next year, but until then I’ll be using the native applications.

Domain Controller as File Share Witness for an Exchange 2010 DAG

Edit – post removed!

This post was originally written based on the Exchange 2010 beta bits before the Technet documentation was updated to reflect the actual required permissions for a DAG’s FSW. Consequently, it had a major error. You’ll want to visit Devin’s page for a full explanation and the correct way to set up the DAG. Always helps when you can read the documentation, right? :)

Installing Exchange 2010 in 20 Minutes or Less

This morning I set out to install Exchange 2010 on Server 2008 R2 and I was amazed I actually had this up and running within 20 minutes of booting my guest virtual machine. I have not looked in to many of the technical advantages of R2 over R1 for Exchange yet, but I can say that the installation requires a lot fewer prerequisite installs than on Server 2008 R1. Here’s a quick guide to getting up and running on R2 with all the server roles installed.

  • Install a Server 2008 R2 RTM server. I’d recommend using Enterprise Edition so you can add a 2nd Exchange server later and test out the DAGs. I had a Sysprepped image I was able to boot up and join to the domain very quickly.

  • Copy the Exchange2010-RC1-x64.exe file to your server and run it. Choose a location to extract the files to.

  • Open a command prompt with administrative privileges and navigate to the folder where you extracted the Exchange files.

  • Issue the command: servermanagercmd.exe -ip scripts\exchange-all.xml

  • Ignore the warning about servermanagercmd being deprecated and restart the server when the installation completes.

  • Open the Services MMC.

  • Change the Net.Tcp Port Sharing Service startup type to Automatic. The prerequisite check for the CAS role requires this to be set.

  • Open a command prompt with administrative privileges and navigate to the folder where you extracted the Exchange files.

  • Issue the command: setup

  • Click Choose Exchange language option and then click Install only languages from the DVD.

  • Click Install Microsoft Exchange.

  • Click Next.

  • Accept the license terms and click Next.

  • Select Yes to enable error reporting and press Next.

  • Select Custom Exchange Server Installation and press Next.

  • Select the Mailbox Role, Client Access Role, Hub Transport Role, Unified Messaging Role and Management Tools. Press Next.

  • Name the Exchange organization and press Next.

  • Select No for Outlook 2003 clients or Entourage (pre-Web Services edition) and press Next.

  • Check the box Client Access server role will be Internet-facing, enter your public URL (mail.domain.com) and press Next.

  • Select the option to join the CEIP and press Next.

  • After the prerequisite check completes click Install.

  • You can see my installer completed in about 12 minutes, which is pretty damn cool. This was a VM with 3 GB of RAM with its VHD on a RAID 10 set. Imagine if this was a production machine with a real amount of RAM.

    exchange2010

    Office Communicator “Outlook Integration Error” problems when using ISA 2006 and Exchange Kerberos Constrained Delegation

    Now that’s a wordy title. I’ve been meaning to write this up since about March in more detail with some fancy diagrams, but I’ve finally given in and decided to just get the information published and update it later. One of the nicest features of ISA 2006 is the ability to use Kerberos Constrained Delegation (KCD) in reverse proxy scenarios. This can used to publish applications like Exchange or SharePoint externally and allows passing NTLM credentials over an SSL channel to ISA which authenticates to Exchange or SharePoint via Kerberos on behalf of the user, making for a seamless experience regardless of location. Read: No freaking login prompts outside the firewall, even in Outlook Anywhere with ISA performing pre-authentication of users. Jason Jones has an outstanding article already written outlining how to set up KCD with Exchange 2007 and ISA 2006 that I recommend following if you’re interested. The point of this article is not to explain how to configure KCD, but to highlight two issues you’ll find when deploying this with Microsoft Office Communicator. If you’ve deployed KCD for Outlook Anywhere and have users with Communicator outside the firewall they’ll probably see the dreaded “Outlook Integration Error” or “Communicator could not retrieve calendar or Out of Office information from Exchange Web services” warnings.

    There are actually two issues here that we need to resolve. The first is that Communicator itself actually uses some slightly different RPC over HTTPs logic than Outlook which causes the KCD authentication through MOC to flat out fail. In R1 of OCS 2007 I found the clients were prompted for credentials 3 times for the Outlook integration and then the integration would fail even with correct credentials. With the R2 client you’ll no longer see the authentication prompts, but the Outlook Integration error would eventually show up. The problem is in how ISA 2006 handles POST requests than do not have a POST body, which is apparently the difference between Outlook and MOC’s logic. There is a hotfix available for this which requires running a .vbs script to make the change to ISA. You can find that hotfix and script here: http://support.microsoft.com/default.aspx?scid=kb;EN-US;942638. You actually need to apply the ISA 2006 Supportability Update package before you can install this hotfix and that package is here: http://support.microsoft.com/kb/939455/.

    The second issue you’ll find is that when ISA offers Communicator the Negotiate and NTLM authenticate headers Communicator actually tries to negotiate and fails. This can be remediated by changing ISA to offer only NTLM headers to clients. There is another hotfix and .vbs script to fix this issue which you can find here: http://support.microsoft.com/kb/927265/en-us. One warning I should point out is this is a system-wide setting and will disable Kerberos for outbound-proxy scenarios. I’m not a big fan of ISA for anything other than a reverse proxy so this had no issues on my environment, but be careful to evaluate your existing rules if you use ISA for anything else.

    You can test out the second hotfix without making any changes to the ISA server by going in to IE’s advanced settings on a client and unchecking the box “Enable Integrated Windows Authentication.” (Thanks to Scott Oseychik for this tip). Contrary to the outstanding verbiage, this only disables Kerberos authentication in IE and will force IE to only try to authenticate via NTLM.

    Once you have all of your hotfixes installed you should be able to login to MOC only and receive no more Outlook integration errors. Perfectly seamless authentication anywhere you are. Jason Jones pointed out the two hotfixes for me originally, so a huge thanks is in order to him.

    Replication Host Names

    In Exchange 2007 Service Pack 1, a new feature was introduced that allowed additional redundant networks to be added to a CCR environment for the purposes of log shipping and database seeding. With specific networks dedicated to log shipping and database seeding, the remaining network is dedicated to its task of servicing client communications. Such a configuration avoids situations where the network that is servicing client communications also has to process a large number of transaction logs.

    Replication Host Names are an Exchange 2007 SP1 feature that I don’t think is used very often or that well known. This is a great article on setting it up from both a Windows 2003 and 2008 perspective.

    Via Neil Hobson.

    OAB Never Downloads for Outlook 2007 Clients with Exchange 2007 on Server 2008

    This one killed me today. Exchange 2007 SP1, with Rollup Update 6 on Server 2008. Everything working perfectly with one exception – the offline address book (OAB) never downloads from the file distribution point for Outlook 2007 clients. Works fine via public folders, but not web-based. No error, no timeout, no progress indicator, no login prompt, Outlook just looks like it’s endlessly trying to download the OAB. I double-checked all the URLs, flipped around SSL settings, but still couldn’t figure out why it wouldn’t download. I would have been happy to see an error so I had something to search on. There were actually 2 problems here that made the situation a real pain in the ass.

    First – the same bug that affects Outlook Anywhere on Server 2008 apparently does a number on the OAB too. The solution is to turn off kernel-mode authentication in IIS. Run this command to fix that issue and you’re halfway there. I ran across some blog that mentioned Rollup Update 7 may include this change by default.

    
    C:\Windows\system32\inetsrv\appcmd.exe set config /section:system.webServer/security/authentication/windowsAuthentication /useKernelMode:false
    

    Second – I had enabled a redirect at the Default Web Site root to dump clients to the /owa folder gracefully using the Microsoft methodology at Technet. If you read the procedure you’ll notice setting the redirect at the root sets the same redirect on every single virtual directory. So, you need to go in to each virtual directory and undo the change you made for the root. This works fine, or appears to until your Outlook 2007 client tries to download the OAB and hangs forever.

    I brightly plugged the URL to the OAB.XML file into IE and was greeted with a 500 – Internal Server Error message without an authentication prompt. That didn’t seem right. After some searching I realized the reason why Outlook hangs forever is that it tries to hit this URL, gets denied, uses some back-off logic, and tries again. I believe the back-off gets longer and longer each time it fails.

    What happens is that when you disable that redirect for the OAB virtual directory IIS 7 generates a web.config file in the C:\Program Files\Microsoft\Exchange Server\ClientAccess\OAB folder. This seems logical, as it overrides the redirect at the root level, and is necessary. Unlike every other web.config that is generated in the other folders like Autodiscover and OWA, Authenticated Users do not have read access to the file. This is why Outlook and IE can’t even access the /OAB virtual directory.

    The fix is pretty easy. Open the web.config in the OAB folder, and give Authenticated Users both the read and read and execute permissions. Run a iisreset /noforce on the CAS server to bounce IIS. Just for good measure, on the client side I wiped out the Outlook profile, and the contents of the %USERPROFILE%\Local Settings\Application Data\Microsoft\Outlook folder. Once I recreated the profile the OAB downloaded just fine. All in a day’s fun…

    Entourage 2008 Beta Supports Exchange Web Services

    Hallelujah. Some decent support for Exchange on the Mac side. Significant changes include:

    • Enhanced Autodiscover service to keep user account settings up to date after the account setup.
    • Synchronization between Exchange Server and Entourage 2008 Notes, Tasks, and Categories.
    • Addition of an Enable Logging (troubleshooting) preference, to log all events that can be used as diagnostic information.
    • Use of attachments in Entourage for Exchange calendar events.

    At a minimum you need Entourage 2008, but what version of update rollups your Exchange server needs to be at is a little confusing. The blogs say Update Rollup 4, but when you fill out the survey to get in the beta it says Update Rollup 5. I guess I’d go better safe than sorry and assume Update Rollup 5 at this point.

    You can sign up for the beta here: http://www.microsoft.com/mac/itpros/entourage-ews.mspx

    Edge Transport Rules & SCL Values

    Ever tried to prepend the subject of every email message with [SPAM] if it meets a certain SCL value? I figured it would be easy enough with a transport rule. Walked through the wizard and set up a basic rule set that I thought seemed reasonable.

    Apply rule to messages
    With a spam confidence level (SCL) rating that is greater than or equal to 4
    And from users outside the organization
    Prepend the subject with [SPAM]

    Now that should work, right? Wrong. Messages kept flowing through without the subject modified at all. I took a look at the mail headers and I could see the SCL value being set to 4 or 5, so why wasn’t the subject being modified?

    Turns out the Content Filtering Agent fires after the Edge Filtering Agent. So messages would flow through my custom rule with an SCL of 0, continue on because they didn’t meet my criteria of 4 or higher, then get passed to the Content Filtering Agent which would set the SCL 4, and then end up in my mailbox. In order to fix this you need to flip the agents around so the Content Filtering Agent is processed before Edge Transport Agent. By default The Edge Rule Agent is 3rd and the Content Filtering Agent is 4th. This Powershell line should flip them around:

    Set-TransportAgent ‘Edge Rule Agent’ –Priority 4

    Or, if you prefer to actually read documentation before banging your head against the wall wondering why it doesn’t word you could be smarter than me and just read this article in advance: How To Make the SCL Value Available to Edge Transport Rules

    iPhone Configuration (Web) Utility

    So now that the JesusPhone iPhone has been deemed Enterprise worthy around the world with its Exchange support businesses are jumping at the opportunity to move employees on to the platform. Or should I flip that around to say employees are breathing down the neck of IT departments so they can finally get an iPhone?  Either way works.

    Apple has actually provided a configuration utility named, oddly enough, the iPhone Configuration (Web – if you use the web version) Utility that you can download for free. There is a native application for OS X and a web-based one for Windows or OS X systems. As far as I can tell, they all have the same feature set. Here’s a quick little tour…

    The main screen resembles the iTunes interface for syncing iPods and iPhones. You can also sign your profiles with a certificate, otherwise they’ll appear to be from an untrusted source to the end-user.

    image

    The passcode page lets you configure some lockout and pin policies.

    image

    Wi-Fi lets you configure wireless network profiles. It’s actually extremely flexible in how much you can configure.

    image

    The VPN page lets you configure either PPTP, L2TP or an IPSec Cisco VPN connection.

    image

    The Email tab will allow configuration of an IMAP or POP account.

    image

    The Exchange tab lets you configure a few settings to bypass any Autodiscover lookup.

    image

    The credentials tab lets you import certificates on to the iPhone. You can add a self-signed certificate here (hello SBS users!) to import on the device. You could alternatively point the user at a web address with the certificate file and mobile Safari would prompt them to install the certificate.

    image

    Lastly, you can set up the APN address, username and password if you’re really ambitious. I’d suggest leaving this setting alone.

    image

    Missing PR_PF_PROXY attribute on public folders

    If you’re in the Exchange 2003 System Manager and try to open up the properties of a public folder you might see an error like this:

    The mail proxy for this folder cannot be found. This may be due to replication delays. The mail enabled pages will not be shown. ID no: c1038a21

    That will lead you to this KB article: http://support.microsoft.com/kb/328740 where the simple fix (Method #2) is to just mail-enable the public folder again. What the KB doesn’t mention is that in ESM you need to use the Folders node to do this. If you were to drill down through your Information Store and Public Folder Store you’ll never get this option. So in ESM make sure you do this through the folders node like in the screenshot.
    image

    At that point you can right-click on a folder, choose All Tasks and then Mail-Enable. You’ll see a warning message about only re-stamping the PRPRPROXY attribute if really necessary. Just press Yes and you should be able to look at the public folder properties again.