<

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x

Out Of office not working

Published on
61,384 Points
11,684 Views
7 Endorsements
Last Modified:
Approved
MAS
Exchange Server, Windows Server, Active Directory, Virtualization, Skype for Business Expert.

This article will help to fix the below error for MS Exchange servers
 I. Out Of office not working
 II. Warning when opening outlook  "server.domain.com"
 III. Warning when opening outlook "autodiscover.domain.com"
 IV. Make Internal URLs and External URLs the same.


Most Exchange administrators don't check the complete URLs which Exchange uses for serving MAPI clients or miss URLs to set and add certificate names after installing Exchange server. Below are fixes for those errors.


1. First make sure you have a Forward lookup zone named "externaldomain.com"  in your internal DNS server.


2. Then create the below A record in the newly created zone which points to exchange CAS/HUB server IP or load balancer IP if you have one.

     a) autodiscover.domain.com

     b) mail.domain.com (common name)


3. Then make sure you have all the required names added as SANs in your SSL Certificate. The below names should be present for a single domain exchange.

     a) mail.domain.com (common name)

     b) autodiscover.domain.com


4. Make sure IIS is enabled on the installed certificate.

     

Type "Get-ExchangeCertificate" in Exchange Management Shell and see IIS enabled or no.

     

Exchange 2007

Before services enabled in Exchange 2007

Exchange 2007  before service enablingAfter services enabled in Exchange 2007

Exchange 2007  after service enabled    

Use the command shown below to enable the services. You can change the services according to your requirement. but IIS is mandatory.

 

Enable-ExchangeCertificate -Services IMAP, IIS, SMTP -thumbprint 896B74B25F7EBF330C93E56DA2A76CFC6A7



5. Enter the below command in Exchange Management Shell and see the Autodicover URLs are  set.                                                                                                                            

 

Get-clientAccessServer | fl Name,AutoDiscoverServiceInternalUri

If you see the default URLs set by exchange installation use the below command to set it to the same as external.                                      

 

Set-ClientAccessServer -Identity server1 -AutoDiscoverServiceInternalUri "https://mail.domain.com/autodiscover/autodiscover.xml"



6. Enter the below command in Exchange Management Shell and see the offline address book URLs are set.                                                                                                               

Get-OabVirtualDirectory |  fl Server,Name,internalurl,externalurl

If you see the default URLs set by exchange installation use the below command to set it to the same as external.                                       

Set-OabVirtualDirectory -Identity "server1\oab (default web site)" -InternalUrl https://mail.domain.com/oab -ExternalUrl https://mail.domain.com/oab



7. Enter the below command in Exchange Management Shell and see the exchange web services URLs are set.                                                                                 

Get-WebServicesVirtualDirectory | fl name,internalurl,externalurl

If you see the default URLs set by exchange installation use the below command to set it to the same as external.                                        

set-WebservicesVirtualDirectory -Identity "server1\EWS (default web site)" -InternalUrl https://mail.domain.com/EWS/Exchange.asmx  -ExternalUrl https://mail.domain.com/EWS/Exchange.asmx


8.Check to see that the Out of Office URL is correct from a workstation/outlook.

Press Ctrl and right-click on the Outlook icon located in your system tray, you can select Test E-mail AutoConfiguration.

OutlookbarEnter the email address of the mailbox you have opened and the password. Since we are not using POP3 or IMAP, there is no reason to leave the GuessSmart checkboxes checked.

TestoutlookAfter clicking Test, you will get the URL used to configure OOF.

OOFURL    

Please reset IIS using the command below (Optional but recommended).

iisreset /noforce

Now you should have all your errors cleared.

To clear certificate error and set URLs in Exchange2010. Please check follow this.

To clear certificate error and set URLs in Exchange2013. Please check follow this.

To clear certificate error and set URLs in Exchange2016. Please check follow this.

7
Author:MAS
2 Comments
LVL 31

Author Comment

by:MAS
I made some changes please review it and let me know if more changes required
0
 

Administrative Comment

by:Eric AKA Netminder
Congratulations! Your article has been published.

ericpete
Page Editor
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month