# Adding Microsoft 365 in a LAN-only environment

**URL:** https://community.zammad.org/t/adding-microsoft-365-in-a-lan-only-environment/8747
**Category:** Technical assistance
**Created:** [February 23, 2022, 3:51pm UTC](https://community.zammad.org/t/adding-microsoft-365-in-a-lan-only-environment/8747 "2022-02-23T15:51:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![richie\_77](https://community.zammad.org/user_avatar/community.zammad.org/richie_77/32/5964_2.png) [@richie\_77](https://community.zammad.org/u/richie_77)
#### Post date: [February 23, 2022, 3:51pm UTC](https://community.zammad.org/t/adding-microsoft-365-in-a-lan-only-environment/8747/1 "2022-02-23T15:51:09Z")

</div>

Is it possible, to add an Microsoft 365 mailaccount, when the zammad instance is not reachable from the internet?

We have setup zammad in our active directory network, which has a .local domain. To get a ssl certificate for our zammad instance, we have set up split dns. The zammad uses a subdomain from a public domain, we own.

If i set up microsoft 365, there is the callback url with our public domain, which points internally via dns to the zammad server in the LAN. Due to this, the M365-authentication won’t work. Is there a way to add such accounts without opening the zammad server to the internet?

---

<div class="post-metadata">

### Author: ![MrGeneration](https://community.zammad.org/user_avatar/community.zammad.org/mrgeneration/32/9260_2.png) [@MrGeneration](https://community.zammad.org/u/MrGeneration)
#### Post date: [March 29, 2022, 9:30pm UTC](https://community.zammad.org/t/adding-microsoft-365-in-a-lan-only-environment/8747/2 "2022-03-29T21:30:39Z")

</div>

Your Zammad installation has to be able to communicate with the internet (Microsoft in this case) in order for the Microsoft 365 channel to function. During adding the account, the user that adds the account in question requires both, connectivity to the Internet (Microsoft) and the Zammad instance.

Technically the same would apply for the authentication method as well.  
The only thing Microsoft does not support (as far as I’m aware) is HTTP callback URLs (which you shouldn’t use any way). If they also don’t `.local` domains then you have no possibility to use Zammad in the desired scope.

---

<div class="post-metadata">

### Author: ![system](https://community.zammad.org/uploads/default/original/1X/5c5afaea2d23f811dbec33cd4edb02fa29d3262f.png) [@system](https://community.zammad.org/u/system)
#### Post date: [July 27, 2022, 9:31pm UTC](https://community.zammad.org/t/adding-microsoft-365-in-a-lan-only-environment/8747/3 "2022-07-27T21:31:31Z")

</div>

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.
