Yup.
Buy any domain name, doesn’t matter what. I pay 15 dollars a year for mine. https://gandi.net
https://mailu.io/2.0/ is pretty turnkey
https://github.com/docker-mailserver/docker-mailserver has a lot more customizability and you can chain together stuff like encryption, spam filtering, auto replies with an AI agent. However those are all other containers you’ll have to add into your environment.
https://jzweig.com/blog/setup-your-own-email-server-with-docker/ Is a really simple how to
Whatever you do, pay close attention to your SPF, DKIM and DMARC
https://www.howtogeek.com/devops/dkim-dmarc-and-spf-setting-up-email-security/
Edit: OP asked for free, secure, and doesn’t get taken down for inactivity. If you want to do that and pay as little as possible, with the most security, you’ll have to self host. Otherwise you should pay for the service, or deal with the data brokers that offer free email. In capitalism, unfortunately, there is no free lunch.
https://wiki.trinitydesktop.org/Trinity_Desktop_Environment
I would suggest starting here with whatever distro you’re most comfortable with
I’d be wary of yandex
https://www.cvedetails.com/vulnerability-list/vendor_id-6851/Yandex.html