We are trying to set our mapi virtual directory, as follows :-
We have a single 2012 standard server running 2 hyperv servers. One is our domain controller "2012serv" and the other is our exchange server "exch2016"
Running the Get command confirms it is set to the local name :-
Identity : EXCH2016\mapi (Default Web Site)
InternalUrl : https://exch2016.domain.local/mapi
When trying to set our MapiVirtualDirectory to remote.domainname.co.uk as follows :-
irectory -Identity "https://remote.domainname.co.uk/mapi
The operation couldn't be performed because object 'exch2016.domain.local\https://remote.domainname.co.uk/mapi'
couldn't be found on '2012serv.domain.local'.
+ CategoryInfo : NotSpecified: (:) [Set-MapiVirtualDirectory]
+ FullyQualifiedErrorId : [Server=EXCH2016,RequestId
+ PSComputerName : exch2016.domain.local
The default site is currently set to the local name, and we need it to be set to the external name so it matches our SSL certificate.
As you can see, when we try and set it to remote.domainname.co.uk we get an error.
Can anyone advise what we are doing wrong, and how we go about resolving this?