Run Mail-in-a-Box in the same droplet as my website and API

I have a domain registered with Godaddy called I am running a REST API and my basic html website on the same droplet.

Now I want to run our own mail server, I read the article on but this seems to be only to run a whole droplet as a mail server (and not a subdomain).

How can I achieve this to run the Mail-in-a-box on the same droplet without problems for the API and website?

Thanks in advance for any help

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

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.

Hello AbedNaserid, you can put your webfiles in a predefined directory which have instructed on MIAB. login to your MIAB admin panel then goto web which located on top menu bar. it will show you where u can put your web files u can also use mysql for your web project. and also u can configure nginx for your custom need.( Link)

I personally used web within the same vps. my experience is not good. then i leave the web on other machine. i recommended use different vps for web. I see the nginx file changes by MIAB automatically, so i can not rearrange the nginx as per my need. if you have static site or no need to change nginx configure u can use the web.

Hello friend!

While it is technically possible to do what you are asking, I wouldn’t feel comfortable giving a step by step process. I’ll gladly explain. You see, applications which are intended to take over an entire server often have update processes that assume you have not made unintended modifications. My fear is that I might lead you into it, and then later your website may go down and become an emergency for you.

In this case I highly recommend running the mail-in-a-box script on it’s own server, as this is more in line with what it’s developers intended.

Kind Regards, Jarland