Anel on a subdomain and Postfix MTA

I have probably the last two issues with the above-mentioned things. Unfortunately, both Google and ChatGPT are struggling to help.

I want the admin panel to be accessible only under the domain panel.domain.com:10000/20000. Of course, before installation, I changed the hostname, everything works, but access is also possible from the main domain by adding the port. I have already changed several options, but unfortunately, it doesn’t produce any results. The DNS is set correctly; I’m not using BIND, but external DNS.

Additionally, I have a problem with correctly configuring Postfix in MTA. With Exim, I didn’t have to configure anything, but here, no matter what I do, it keeps rejecting connections. Ports are open, I added what Google suggested, but unfortunately, no success, whether it’s OVH or Gmail. My own email is also hosted on an external server located in OVH (contact@domain.com), and I want this email to be the main one for the whole panel. Unless there is a better way to solve this. I don’t want to keep the mail server on my own server if it makes any difference.

Additionally, I have a question: What if the website needs to send an email? Is there an easy way to configure this for different domains?

i found small issue? im install virtualmin on arm64

SYSTEM INFORMATION
OS type and version 24.04
Webmin version 2.20.2
Virtualmin version 7 .20.2

Please don’t ask multiple questions in one topic. I need you to focus on one issue per topic.

https://forum.virtualmin.com/guidelines

And, the answer to your first question: You can’t do that. Webmin answers any requests that arrive on the IP addresses on which it is listening. If a hostname resolves to your Webmin server IP address, Webmin will answer.

If you must restrict it, you’ll need to proxy to Webmin (FAQs | Webmin and configure the web server to redirect requests that arrive on the “wrong” name to the “right” name). Or you can remove any hostnames you do not want Webmin to answer on.

You cannot make a web server answer only on some names, though. It has to accept the connection before it even knows what name the request is for. The network layer only has the IP address. So, you cannot get a web server to do nothing when you ask it for the “wrong” name. It can only serve an error or a redirect. That’s as close as you’ll get. (And, Webmin won’t do errors or redirects for the wrong name, that’s not a feature it has in miniserv, the web server that serves Webmin.)

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.