Autodiscover Nginx

Hello, I am using Nginx and I want it to detect automatic mail settings in Outlook etc. systems.

I want to install this on my entire server rather than just 1 site on my server and I want it to be activated automatically for each new user I add, what can I do.

I do not have much experience in Linux, I would be very grateful if you help me in a little detail.