tl;dr you can use *.l.sd.ai to resolve any domain you like to 127.0.0.1. Using a wildcard domain for localhost There are certain situations where you might be working in an environment that requires a locally virtual-hosted environment but a domain that looks like a real-world one. For example, you might be working on an OAuth client where the server wants you to have an actual domain name for the callback URL.
I’ve been running a personal mail server for years. I’m a big fan of self-hosting as a hobby, but more recently, privacy has become a big concern of mine. I’ve put together what I hope is a simple setup for running a personal mail server, if you’d like to do likewise. If you’d like to jump straight to the stack and its documentation, it’s here: https://git.sd.ai/simon/simple-selfhosted-mail/ Motivation Email is my primary communication mechanism despite the societal push towards social networks, but I value my privacy.