How do I run MIAB and Apache2 on one linode?

MIAB (mail in a box), states it wants to run on it's own Ubuntu instance, that it will uninstall apache2, etc. I need to run web server, and email server.

That being the case, I 'think' I would need to set things up like this. (NOTE: If I am way out of line (overly complex), let me know. If what i have is what needs to be done, then please help point an advanced n00b in the right direction documentation wise to get the job done.)

What I think I need (hopefully, I do not need to buy a 2nd linode), is keep my setup like I have today (main system, apache2 installed). Then have a 2nd bootable system, which gets a private IP. Install a clean Ubuntu on this system and boot it. Then on the original system (the web server), setup some port redirection. I will have to redirect things like port 2222 to the private IP/22 (for ssh), then redirect all ports needed to handle all of the email (standard port to the private IP on same standard port). The redirection should not be hard (simply using iptables or some other redirection tool). My issue is how to get that 2nd bootable system setup, and on the same private network node as the 'mail' only server?

If I do need a 2nd linode, I need them to be on the same private network, I think. Well if on a 'true' static IP, I could port fwd to that, across internet, but I would prefer to port forward only on private networks.

1 Reply

@jim_foug It is recommended that you use your Mail-in-a-Box server exclusively as a mail server. The reason for this is because Mail-in-a-Box will want to take over your DNS so that it can confirm that the records are set up properly.

The official page has some additional information about this here under the How will this affect my website section - which they label as an advanced step. There is a link to their instructions for relaying for other machines that you will want to read through as this sounds like what your are looking to set up.

I'm not sure if you will need to use a private IP address to accomplish your goal. However, you can add one private IP address from within Cloud Manager. You will need to contact Support if you need additional addresses. As long as both servers are in the same data center, they will be able to talk to each other over this private IP. Just make sure to set up firewall rules as this private address is accessible to all Linodes in the data center.

I hope this helps!

Additional resources:

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct