Mail Server On Different Ip Address on DigitalOcean

Hello everyone,
I have a probelm, that i want to install Mailinabox on different server and webserver on different on different with same domain.Is it possible, if possible then how?
Please help me.

It sounds like you want to have mail handled by one server, and web traffic by a second server. I do this too.

Just make sure:

  1. Your MX record is pointing to the mail server.
  2. Your A record is pointing to the web server.