Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 230
  • Last Modified:

ActiveSync not getting configured automatic

I have a DAG with three members, All servers holding all the 3 roles.
All working internally excpet activesync not getting configured automatic.

I added external domain as Alternate UPN Suffix and changed a test user's profile account to test@externaldomain.coim

Still server name not coming automatic in Android (Activesync).

Anyone can guide me on this?
0
MAS
Asked:
MAS
  • 11
  • 10
2 Solutions
 
George SasIT EngineerCommented:
0
 
MASTechnical Department HeadAuthor Commented:
I already set OWA URLs I am talking about activesync autodiscover.
0
 
George SasIT EngineerCommented:
Set-ActiveSyncVirtualDirectory -Identity "COMPUTERNAME\Microsoft-Server-ActiveSync (Default Web Site)" -ExternalURL "https://servername.com/"

Set-ActiveSyncVirtualDirectory -Identity "COMPUTERNAME\Microsoft-Server-ActiveSync (Default Web Site)" -ActiveSyncServer "https://servername.com/"

Use this tool to check it and see why it is not working :
https://testconnectivity.microsoft.com/
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
MASTechnical Department HeadAuthor Commented:
-->Set-ActiveSyncVirtualDirectory -Identity "COMPUTERNAME\Microsoft-Server-ActiveSync (Default Web Site)" -ExternalURL "https://servername.com/"
-->Set-ActiveSyncVirtualDirectory -Identity "COMPUTERNAME\Microsoft-Server-ActiveSync (Default Web Site)" -ActiveSyncServer "https://servername.com/"

COMPUTERNAME is netbiosname of the exchange server?
Here servername.com is domainname or netbiosname of the exchnage server?
0
 
George SasIT EngineerCommented:
Computername - Your CAS server computername. (netbios name)
Example :
Set-WebServicesVirtualDirectory -identity "CAS01\EWS (Default Web Site)" -externalurl https://mail.contoso.com/EWS/Exchange.asmx -BasicAuthentication:$True

Here is a short guide :
http://mshiyas.wordpress.com/2010/07/06/how-to-configure-and-verify-autodiscover-for-exchange-2007-and-2010/
0
 
MASTechnical Department HeadAuthor Commented:
This is set already.  Test is all success.
Still Activesync not working automatic.

server name not coming automatic.
it is showing domain.com as server name instead of mail.domain.com
This is the error
"Failed to search Exchange server automatically. Enter settings manually"
0
 
George SasIT EngineerCommented:
Set-ActiveSyncVirtualDirectory -Identity "servername\Microsoft-Server-ActiveSync (Default Web Site)" -ActiveSyncServer "https://mail.company.com"

Make sure you have the DNS entries in order for Autodiscover and so long.
0
 
MASTechnical Department HeadAuthor Commented:
I set this still not working automatic showing the same error
"Failed to search Exchange server automatically. Enter settings manually"

Autodiscover and common name records are added in external and internal DNS servers
0
 
George SasIT EngineerCommented:
What phone is this ?
Try on a Nokia and an iPhone. If it works there then use another software than the one built in on the problematic phone. I recommend TouchDown.
I have seen this problem on some Samsung and Sony phones.
0
 
MASTechnical Department HeadAuthor Commented:
I tried Iphone showing the same error. Server name not coming automatic
0
 
George SasIT EngineerCommented:
And what does https://testconnectivity.microsoft.com/ say ?
It should give you detailed instructions on how to correct the errors.

If name does not come automatically it is either one of this :
- You use a different default e-mail domain than the one that you try to configure on the OWA.
- Your ActiveSync configuration on the IIS server is wrong.
0
 
MASTechnical Department HeadAuthor Commented:
:- You use a different default e-mail domain than the one that you try to configure on the OWA.
Its configured to use internal domain
Activesync urls configured as our external name
0
 
George SasIT EngineerCommented:
Ok, then the user does have 2 e-mail addresses or only one ?
Like username@internaldomain.com + username@externaldomain.org ?
And you log in with username@internaldomain.com but the primary e-mail address is username@externaldomain.org ?

What does this command return :
test-OutlookWebServices -identity:youruser@externaldomain.org | ft * -AutoSize -Wrap
0
 
MASTechnical Department HeadAuthor Commented:
Attached the result of the above command
results.txt
0
 
George SasIT EngineerCommented:
That looks ok, the only error is the SSL.
The certificate for the URL https://exch201 0-2.nasser.com/autodiscover/autodiscover.xml is incorrect. For SSL to work, the certificate needs to have a subject of exch2010-2.nasser.com, but the subject that was foundis autodiscover.nsportq8.com. Consider correcting service discovery, or installing acorrect SSL certificate.

This is from inside.
But please DO test with https://testconnectivity.microsoft.com/ and see what errors you get !
0
 
MASTechnical Department HeadAuthor Commented:
Any update?
0
 
George SasIT EngineerCommented:
From me ?
I asked you 3 times to test from outside also :
"This is from inside.
But please DO test with https://testconnectivity.microsoft.com/ and see what errors you get ! "

Did you tested from outside ?
Inside all looks ok.
0
 
MASTechnical Department HeadAuthor Commented:
I tested from inside and outside both failed.
But  I have SRV and autodiscover created
0
 
MASTechnical Department HeadAuthor Commented:
Thanks it worked .
A final question. How do teh activesync client get the external name(I mean the server name field) ?
Where we configured that server name in activesync virtual directory?
0
 
George SasIT EngineerCommented:
It gets it from the Exchange.
It will check for tha autodiscover.domainname.com and look for the autodiscover.xml file with the config.
0
 
MASTechnical Department HeadAuthor Commented:
My question is not clear to you I guess. Before it was connecting to domain.com n throwing the error.
Now it is connecting to mail.domain.com how the client get this name and where we mentioned this name in server?

Any update on the above?
0

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

  • 11
  • 10
Tackle projects and never again get stuck behind a technical roadblock.
Join Now