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!
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 $100 of credit to try our products over 60 days!