<

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

x

Out Of office not working

Published on
61,310 Points
11,610 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
Comment
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

Learn SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

Join & Write a Comment

This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …
Please check the video also in regards to recovery of deleted emails from office 365 admin center and through the MFCMAPI tool. I have mentioned each and every step with the proper steps that need to be taken care of.

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month