On both VPS-es I want to host like maximum 5 websites. For all the websites I want mailserver per site. Like mailserver hostname is: mail.website1.com and for the second website on VPS 1 it would be mail.website2.com.
I know how to setup a VPS with mutliple domains (done this using VirtualMin), but how to set up multiple VPS-es where the hostname is a subdomain / hostname of my purchased domain (srv1. or srv2, etc.). How would I setup mail correctly per server?
In DOs DNS manager I have set-up a add a new website for every website on srvX. The A records of this website redirects to either VPS1 or VPS2 depending on what srvX the website is on.
This seems to work, but now: how to setup mail? (just the DNS settings, I already set up mailservers with postfix and dovecot)
Should I just add mail.websiteX.com per website, which points to a specific VPS? Because I have read that the VPS name has to be the mailserver name for the PTR record to setup correctly. That would make it impossible to add multiple mail.websiteX records?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!