I read many topics about the admin panel wich is not reacheable or goes 404.
Mine MIAB was one of these.
How i destroyed NGINX:
- I created a new box (trash@mydomaindomain.com)
- Setted up a Catch-All from @mydomaindomain.com to trash@mydomaindomain.com
- I deleted trash@mydomaindomain.com
- I deleted the cacth-all alias.
I tryed to follow the instruction reported here [RESOLVED] box.mydomain.com/admin suddenly 404s with a little success: the admin panel came back up but on any changes to users or aliases ended with same result:
“Something goes wrong” and admin panel in 404.
How i fixed it:
Taking inspiration from How to remove Mail-in-a-Box i made a backup of all the user-data (is not necessary but one bakup is better than zero) and i uninstalled the following packages
php5-cli php5-sqlite php5-gd php5-imap php5-curl php-pear php-apc curl libapr1 libtool libcurl4-openssl-dev php-xml-parser
php5 php5-dev php5-gd php5-fpm memcached php5-memcache unzip
bind9-host netcat-openbsd
opendkim opendkim-tools opendmarc
php5-fpm php-soap php5-imap libawl-php php5-xsl postfix postfix-pcre postgrey ca-certificates
spampd razor pyzor dovecot-antispam dovecot-core dovecot-imapd dovecot-pop3d dovecot-lmtpd dovecot-sqlite sqlite3 dovecot-sieve dovecot-managesieved
Probably is a redundant list, but i don’t care.
Note: f you follow the installed packages in the sourcecode you will find “sed”, i don’t what sed is but ubuntu consider it stricly necessary so i didn’t removed it.
Note 2: I don’t know how but during tthe process i removed curl.
Then i re-installed MIAB.