# Microsoft 365 Exchange Catch-All Email Application: O365 Category: Guide [Exchange Admin Centre](https://outlook.office365.com/ecp/) ## 0 - Domains Make sure all domains are set to Internal Relay, not Authoritative. ALL DOMAINS MUST BE SET TO THIS, otherwise none of this will work. Do this from Mail Flow>Accepted Domains ## 1 - Shared Mailbox Create a shared mailbox for the catchall messages to go to and set yourself as an admin. If you don't want to deal with a separate mailbox, you can set mail here to be forwarded to you. Do this from Recipients>Shared. {{ :lab:d:g:20201220-212733.f699c74ccfb0967f38ac905e178f11fe.png?400 |}} {{ :lab:d:g:20201220-212755.0131792e0a1baf955f28aeb5336517de.png?400 |}} ## 2 - Dyn Dist List Create a dynamic distribution list that will contain all valid users. Do this from Recipients>Groups {{ :lab:d:g:20201220-212705.a1398a3a0007ceb2c4a542b7029b81e9.png?400 |}} {{ :lab:d:g:20201220-212715.fd4c7011e9894cd47dee3ae429b37d97.png?400 |}} ## 3 - Mail Rule Create a rule to send mail to the catchall mailbox if it is not sent to a valid address. Do this from Mail Flow>Rules IF the sender is located outside the org DO redirect the message to the catchall mailbox DO (opt) prepend a disclaimer/prepend to the subject line EXCEPT IF the recipient is a member of the allusers group ### Code for Disclaimer [https://gist.github.com/itsmeimtom/d5fb2eb3c4636d263e463f91efeebf5a#file-catchall-html](https://gist.github.com/itsmeimtom/d5fb2eb3c4636d263e463f91efeebf5a#file-catchall-html)