How to make an imported site not accessible for existing users, but only staff and services like CDN that need to be configured?

Sure, that’s what mailhog does. It accepts messages, shows the queue and gives you the option to release emails to mailboxes.