skip to content
Maathuran's Blog
Signing up for the Microsft E5 with Custom domain

Signing up for the Microsft E5 with Custom domain

/ 3 min read

Introduction

We will add a custom domain to Microsoft E5 Dev, move email hosting from Cloudflare to Microsoft Exchange, and enable a catch-all mailbox.

Adding Domain

Under Microsoft 365 admin center, click Setup then Get your custom domain set up. After that, click on Get Started MS1

Fill out your domain name, then click Use this domain. MS2

I will use a TXT record to verify domain ownership to keep the setup universal. Click on Continue. MS3

The portal will give you a value of the TXT record MS4

Under Cloudflare, you will add the records above CF5

After adding the TXT records, click Verfy on the Admin Center Portal, and you will be brought to the Connection options page. I will be using the manual DNS records. MS6

On this page, I selected all but Skype for Business, and you can click on Download Zone File to import the records to Cloudflare more easily. Before importing, one thing you will need to do is turn off email routing. MS6

Log in to your account on Cloudflare, then go to Website -> DNS -> Records -> Import and Export, then drag the zone file from the Admin portal. after that, click on Upload CF7

On the Admin page, click on Continue. If you get an error, try again in a couple of hours after the DNS is propagated MS8

Click on Done here MS9

Adding Primary User

Under User -> Active User, click Add a User. Then, fill out all the required data MS10

Add the E5 Licence, then click on Next. MS11

Skip the Optional Settings and click Next. MS12

At the Last screen, click Finish Adding. MS12

You should be able to see the new user created now MS13

Password Huj701091

Creating a Catch all Mailbox

Under Exchange admin center, click Recipients -> Mailboxes -> Add a shared mailbox. Call it Catch All with the email Catch-all@ata.al. After that, click on Create. It might take a minute to make the shared mailbox. EX14

After creating the shared mailbox, click on it, then Selegations -> Read and Manege (Full Access) and add your mailbox. EX15

Dynamic Distrubutiun Group

Under Recipients -> Group, click add a group, then select Dynamic Distribution. EX16

You can call it All O365 Users, then Next. EX17

For Members, select All Recipients, then Next. EX18

Under Edit settings, you can put All-User@ata.al as the Group email address, then click Next. EX19

You will be brought to a review screen. Click on Create Group EX20

Click on Close after

Changing mail flow to not drop unknown mail

Under Mail Flow -> Accepted Domains, click on your primary domain, then change This accepted domain is Authoritative to Internal relay, then click on Save. EX21

Mail Transport Rule

Under Mail Flow -> Rules, click Add a rule, then Create a new rule and call it Catch-All. For Apply this rule if, set it to the sender -> is external/internal, and the sender is NotInOrganization. Set Do the following to Redirect the message to -> these recipients and Redirect the message to catch-all@ata.al. for Except if -> The Recipient -> is a member of this group and select the dynamically created distribution list All-User@ata.al. Like the image below, then click on Next. EX22

For Set Rule Setting, keep everything the same and click Next. EX23

Click Finish then Done. After that, enable the new Rule EX24

Testing Catch-All

Try sending a message to an email that does not exist. After a few minutes, you should see it in the new Shared Mailbox. EX24