These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for How do you block or secure (SSL) the IP address used when accessing Webmin/Virtualmin? on the new forum.
If you have a vps called server1.hostdomain.com, (where hostdomain.com is you and not a client.
In Virtualmin, create a virtual server called hostdomain.com.
Once it's created, add a new SSL certificate to new virtual server from inside virtualmin tab>server configuration>SSL certificate...choose which option you want... say from Letsencrypt.
Ensure that certificate is for
hostdomain.com
wwwhostdomain.com
server1.hostdomain.com
Once the new SSL cert is generated, you will see a list of buttons below...One will be copy to webmin, postfix, dovecot, proftp etc (choose these and your done)
Be careful when creating additional virtual servers when logged in as root...don't just automatically copy new SSL certs to everything...i dont understand why jamie and erik and joe keep telling us to click on this for new virtual servers for postfix...every time i do it, it stuffs my host ssl certificate and then client start complaining something is wrong. I dont think this option works with Postfix (which on a server with just 1 shared ipaddress for all client virtual servers cannot handle multiple ssl certs as far as I am aware). Probably safest to log into virtual servers as their own administrator when getting SSL certs for clients (if client virtual servers have webmin logiin ability)
So if you have additional clients with mail, they need to set their dns mx record to either your vps server1.hostdomain.com or to your vps external/public ip address
Dns examples for shared hosting server..
clientdomain.com MX server1.hostdomain.com.
Or
clientdomain.com MX <Your server IP address>
((no one bothered to explain this to me about postfix and it's caused no end of headaches)
https://ajecreative.com.au
Thanks for the quick response. I tried to create a new virtual server as you suggested with my "flagship" domain but it did not complete successfully as the others time with the other virtual servers.
I know there is an option to create a new SSL cert for every new Virtual Server but of course now I cant find that option anywhere since I checked it off. When creating a new virtual server Status said "Requesting a certificate for..." and tries to create one for the new server with a Let's Encrypt certificate, it worked for others but not this time for some reason.
I am confused with the LEt's Encrypt cert creation as well. To me it almost looks like one certificate is being generated and shared by all the virtual servers. I though it would be one created for each individual virtual server/domain?