Score:0

How should I configure my hostname/FQDN for a multi-purpose VPS?

cn flag

I recently got a VPS and have a fresh Ubuntu install, but I'm a bit confused as to how I should be setting up the hostname and /etc/hosts file if I'm wanting to set up an email server (Dovecot/Postfix) as well as use it for a NodeJS dev platform (and later hosting production stuff).

I read that you're supposed to set your FQDN (and hostname) to mail.domain.com to avoid issues with Postfix, but that seems odd to do in my use case if I'm going to be using this VPS for a few other things as well.

Should I still do this, then handle other subdomains/etc via something like nginx if I'm going to point traffic at various Express/React apps once they're running?

I'm pretty new to the server/system administration side of all of this.

Thanks in advance for any advice!

djdomi avatar
za flag
your physical hostname has nothing to do with your postfix. my server's have cryptic names and how wonderful my mailserver is respond to mx.domain.tld or mail.domain.tld
Score:3
ar flag

Name it whatever you want. There's nothing magical about mail.example.org; it's just a commonly used name for mail server. The mailserver may as well be named example.org or zaphod.beeblebrox.is.alien.example.org. Heck, it need not be in the same domain as the domain it's handling mail for.

MisutoWolf avatar
cn flag
Alrighty. I’ll work on getting it set up tonight then.
Paul avatar
cn flag
Just be sure to keep in mind that many mail servers perform forward confirmed reverse DNS (FCrDNS) checks on sending servers. If the check fails, the mail may be rejected or even discarded.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.