I'm really confused by FQDN.
So there is this file on my debian machine /etc/hosts
.
What exactly goes in there?
Say my VPS is located at ipadress: 39.22.11.99
And i have a couple of domains all pointing to this ip adress. Let's say:
domainA.com
, domainB.com
, domainC.com
Those 3 domains do each server another purpose and are correctly configured with Nginx to point to the correct data say: websiteA, websiteB, websiteC
I have one mail server running on my VPS working and all. Yet somehow i think my /etc/hosts
file is not configured correctly as all the mail goes into my spam folder even while i have an SSL certificate for all 3 domains and subdomains.
How would one configure his /etc/hosts
file?
And should virtual hosts/users help me sending mails from different domains?
For now my /etc/hosts
file looks like this:
127.0.0.1 localhost SomeAlias
39.22.11.99 domainA.com SomeAlias
39.22.11.99 mail.domainA.com SomeAlias
39.22.11.99 domainB.com SomeAlias
39.22.11.99 domainC.com SomeAlias