As the title suggests I am using a VPS that does not allow me to set a custom hostname. On every reboot the hostname is reset to their specification. Can I still run a postfix mail server on this machine?
Asked
Active
Viewed 53 times
0
-
1Does the IP address change? What is the purpose of this postfix server. (These are important, as you may be able to run a postfix server but it might not make sense to do so) – davidgo Mar 28 '20 at 01:51
-
The purpose is the run a complete mail server and the VPS has a static ip. – Mikmist Mar 29 '20 at 09:01
-
You can run postfix on this machine - but I expect you have an extremely steep learning curve and it may be worthwile upskilling first. There are a lot of gotchas running a mail server, and I imagine you will find it very painful if you are at a level where setting a hostname on / immeduately after startup is not considered trivial. Of bigger concern may be the practical requirement for forward and reverse DNS to match - but this is all just the tip of the iceburg. – davidgo Mar 29 '20 at 09:07
-
I'm doing this to learn it, so it's not really productive telling me not to try it. Regardless, the problem that I seem to be facing isn't that I can't set the hostname, because that is indeed trivial, it's that my outside connection is blocked once I do it. – Mikmist Mar 29 '20 at 15:24
-
1I never told you not to try it, I advised you need to upskill before you do. You have posted in a forum for *managing systems in a business environment* -and the expectation here is you are have system administration competencies. At your level of knowledge your question is more appropriate on Superuser.... – davidgo Mar 29 '20 at 18:59
-
If you are having difficulty changing the host name, your question (on Superuser.com) should focus on that. There is nothing inherent in VM infrastructure tying the VM client to the server by host name. There are almost certainly changes you can make in your Ubuntu to allow you to change the hostname without causing you to loose connectivity. (As long as you really do have a static IP) – davidgo Mar 29 '20 at 19:02