By eatmybinx
I initially set my droplet name to ‘my-first-droplet’, not knowing really what the implications would be. I am successfully hosting 4 domains on the same droplet using LAMP/https/virtualhost configurations. However I am failing to implement Sendmail/Postfix for sending mail via PHP. I suspect that my Droplet’s hostname is causing this, as configuring mail asks for a FQDN, which my droplet’s is not really a valid FQDN.
How can I choose an appropriate hostname and setup sendmail/postfix for my droplet when I have 4 domains, each not taking priority over another so picking 1 for the hostname seems inappropriate. Is hosting several domains in 1 droplet even recommended?
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!
This question was answered by @MattIPv4:
Hi there,
Hosting multiple sites within a droplet is fine!
I believe that your droplet’s hostname should not affect sendmail/postfix as long as you give it a FQDN that resolves to the IP address of the droplet.
In terms of choosing which domain to use, that is really up to you at the end of the day. If only one of the domains is your personal one, I’d use that so it’s “linked” to you.
Hope that helps! - Matt.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.