@stefano I recommend Yunohost to standard users who want to use their own mail server, but are not from an IT background and find what you are explaining complicated. Thus, both its own mail servers and instant messaging servers are automatically installed. In addition, they have the opportunity to run dozens of other services.