Personally, before I install Virtualmin on a new server, I always edit the hostname file in /etc to what I want, s1.mychoice.eu or whatever, seems to go fine for me. Then I reboot once hopefully the server comes backup I then run the install command for GPL as root in a term. Very smooth install usually, did one last night. All tickety boo.
Yes, if you have not set a FQDN when you run the script it will point it out to you and at the same time ask you there and then to set one. I just do it before I even install. Also not to set one that your going to recieve mail on for some reason.
This is because of how virtualmin/postfix internally maps the emails to the relevant linux user accounts on the server. The team have floated the idea of changing from using users to something else.
Thanks. Thought it was something like that. I have a specific domain that I use for this very thing on my servers. DNS for the domain I use goes to a specific IP address and server but seems to be no problem to use on other servers, like s1.domain.eu s2.domain.eu s3 domain.eu etc., I guess it is just a basic requirement?
Also after a nice clean install of VM I then reboot the server again, once back online I login and go through the initial setup / config motions, not had a problem for years.
My Name is David Your name is … Hostname is … whatever you set it to.
Post an image of your /etc/hostname file contents.
If your server is with Hetzner put a ticket in, if you get a good and kind engineer he or she or it will sort it for you.
To have stuff router on the internet, a VM needs a real FQDN otherwise the internet protocols it can use will be limited. If you are not using it on the internet but just connecting into the VM over a local network etc.. you can just have a the hostname part and not need a FQDN.
So the VM needs a FQDN and Virtualmin needs a FQDN but it just uses the host’s (the virtual machine) FQDN. Virtualmin sits on top of your server and uses the assets the server possess rather than creating its own.
For mail to work, you need a fully qualified domain name. And, Virtualmin also tries to get a cert for the system hostname so you can login to Webmin before you have Virtualmin domains without getting a certificate warning in your browser.
But, it shouldn’t be a surprise that it changed. The install script asked you to set a FQDN if the system doesn’t already have one. We generally try pretty hard not to do anything behind your back, we’re aiming for minimal surprise. The download page and install docs discuss the FQDN stuff and the fact that the installer will ask you to set a FQDN if you don’t have one, as well.