Mailinabox: How to uninstall mail in a box in Ubuntu

Created on 13 Nov 2015  路  2Comments  路  Source: mail-in-a-box/mailinabox

Please tell me how to uninstall it from my Ubuntu VPS?

All 2 comments

There is no uninstaller, so I think you'll find it quicker and easier to reinstall Ubuntu than trying to manually revert each change made by Mail-in-a-Box.

You can actually 'uninstall' it (remove would be a better word).

I happened to install it on a server that we were using already and it messed up some of the domains we had and so I had to get rid of it and install it on a new server. Reinstalling Ubuntu wasn't an option since the server already had many things. I did a little search and came across a way of removing it without refreshing the server.

Here are the steps that worked for me.

  1. Delete the mailinabox directory.
  2. Rename the /etc/nginx/conf.d/local.conf to /etc/nginx/conf.d/local.conf.old
  3. Rename the /etc/nginx/conf.d/ssl.conf to/etc/nginx/conf.d/ssl.conf.old
  4. Reload nginx systemctl reload nginx.

You can also rename the server by updating the /etc/hosts and /etc/hostname files

checkout this medium post

Was this page helpful?
0 / 5 - 0 ratings