Multiple ECP & OWA link for different mail domains in 1 exchange server 2019

GDT 0 Reputation points
2024-03-20T05:57:59.54+00:00

Hello Guys,

Recently i setup a Microsoft Exchange 2019 in Windows server 2022.

Now I configured 2 accepted domains in the exchange 2019 (which the mails are working fine inbound and outbound).

abc.com - Ex. mail user: user@abc.com

xyz.com - Ex. mail user: user@xyz.com

the issue I am facing is, when i tried to go to my browser and type mail.abc.com/owa - and i tried to log in as user@xyz.com its allowing it to log in.

Is there any possibility that I can create separate ECP & OWA external links for both different mail domains? or is there any option to block xyz.com mail to disallow them to signed in on mail.abc.com/owa and only allows them to sign in on mail.xyz.com/owa which is their own domain?

I am using only 1 exchange server.

DNS RECORDS - for 1st domain (abc.com)

mail.abc.com. 14400 - A - "Public Ip"

autoconfig.abc.com. 14400 - A - "Public Ip"

autodiscover.abc.com. 14400 - CNAME - mail.abc.com

abc.com. 14400 - MX - Priority: 0 - Destination: mail.abc.com

abc.com. 14400 - TXT - v=spf1 ip4:"Public Ip" -all

DNS RECORDS - for 2nd domain (xyz.com)

mail.xyz.com. 14400 - CNAME - mail.abc.com

autodiscover.xyz.com. 14400 - CNAME - mail.abc.com

xyz.com. 14400 - MX - Priority: 0 - Destination: mail.abc.com

xyz.com. 14400 - TXT - v=spf1 mx ip4:"Public Ip" -all

I hope you can enlighten me on this.

Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,076 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
4,887 questions
Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
508 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,350 questions
Microsoft Exchange
Microsoft Exchange
Microsoft messaging and collaboration software.
389 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Kael Yao-MSFT 37,496 Reputation points Microsoft Vendor
    2024-03-20T08:15:53.9233333+00:00

    Hi @GDT,

    You can refer to this link to create additional OWA/EAC virtual directories:

    https://techcommunity.microsoft.com/t5/exchange-team-blog/configuring-multiple-owa-ecp-virtual-directories-on-the-exchange/ba-p/611217

    But to me it is also not possible to prevent users from signing into another domain.

    You may probably need to setup some rules to restrict ip addresses in IIS.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.