How to “uninstall” Mail-in-a-box
Did you mistakenly install mail-in-a-box on an existing server?
1 min readJun 25, 2019
Today, I installed mail-in-a-box on an existing Ubuntu server, and all my previous nginx config no longer worked.
I later realized I was supposed to use a fresh server (or docker, perhaps), and every forum I saw, had someone saying “Unfortunately there is no uninstall”.
So, here are unofficial steps for uninstalling mail-in-a-box:
- Delete the
mailinabox
directory. - Rename the
/etc/nginx/conf.d/local.conf
to/etc/nginx/conf.d/local.conf.deleted
- Rename the
/etc/nginx/conf.d/ssl.conf
to/etc/nginx/conf.d/ssl.conf.deleted
- Restart nginx
systemctl reload nginx
.
Hola if this works for you too!