MiaB was working fine until I tried to upgrade it. Running the setup script caused my DNS resolution to start failing. This process is 100% repeatable.
To get resolution working, I temporarily set my /etc/resolv.conf to my ISP DNS server. This allows me to execute the command to run the MiaB setup script.
The script downloads and appears to do what it’s supposed to, until it gets to installing Roundcube:
Primary Hostname: box.mcvholdings.com
Public IP Address: 50.192.28.250
Public IPv6 Address: 2603:3017:10b:fe00::d344
Mail-in-a-Box Version: v56
Updating system packages...
Installing system packages...
Initializing system random number generator...
Firewall is active and enabled on system startup
Installing nsd (DNS server)...
Installing Postfix (SMTP server)...
Installing Dovecot (IMAP server)...
Installing OpenDKIM/OpenDMARC...
Installing SpamAssassin...
Installing Nginx (web server)...
Installing Roundcube (webmail)...
FAILED: wget -O /tmp/roundcube.tgz https://github.com/roundcube/roundcubemail/releases/download/1.5.2/roundcubemail-1.5.2-complete.tar.gz
-----------------------------------------
--2022-05-07 16:15:05-- https://github.com/roundcube/roundcubemail/releases/download/1.5.2/roundcubemail-1.5.2-complete.tar.gz
Resolving github.com (github.com)... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘github.com’
-----------------------------------------
At this point, checking /etc/resolv.conf shows that it has been overwritten to nameserver 127.0.0.1
, and from here on the machine refuses to resolve any DNS addresses. dig @127.0.0.1 google.com
returns no results.
I’ve searched the forums and tried some tricks to ensure locales are generated properly (though it looks like this is built in to MiaB setup now).
I’m not sure how to proceed from here. Does anybody have some troubleshooting ideas?
Update:
Now resolution seems to be working but it can’t find the mailinabox address?
eric@box:~$ dig @127.0.0.1 google.com
; <<>> DiG 9.11.3-1ubuntu1.17-Ubuntu <<>> @127.0.0.1 google.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18232
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: e7e9a39237c4ab8d2a3152946276d9a2e0add6df6c45bd06 (good)
;; QUESTION SECTION:
;google.com. IN A
;; ANSWER SECTION:
google.com. 30 IN A 142.250.64.238
;; AUTHORITY SECTION:
com. 29810 IN NS i.gtld-servers.net.
com. 29810 IN NS j.gtld-servers.net.
com. 29810 IN NS e.gtld-servers.net.
com. 29810 IN NS d.gtld-servers.net.
com. 29810 IN NS g.gtld-servers.net.
com. 29810 IN NS m.gtld-servers.net.
com. 29810 IN NS b.gtld-servers.net.
com. 29810 IN NS f.gtld-servers.net.
com. 29810 IN NS a.gtld-servers.net.
com. 29810 IN NS l.gtld-servers.net.
com. 29810 IN NS k.gtld-servers.net.
com. 29810 IN NS c.gtld-servers.net.
com. 29810 IN NS h.gtld-servers.net.
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sat May 07 16:42:10 EDT 2022
;; MSG SIZE rcvd: 307
eric@box:~$ curl -s https://mailinabox.email/setup.sh | sudo -E bash
eric@box:~$ ping mailinabox.email
ping: mailinabox.email: Temporary failure in name resolution
eric@box:~$ dig @127.0.0.1 mailinabox.email
; <<>> DiG 9.11.3-1ubuntu1.17-Ubuntu <<>> @127.0.0.1 mailinabox.email
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 51623
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 7af3ea4e98398d386915a17b6276da0ab0ce77444430c239 (good)
;; QUESTION SECTION:
;mailinabox.email. IN A
;; Query time: 146 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sat May 07 16:43:54 EDT 2022
;; MSG SIZE rcvd: 73
But is resolvable if I use my ISPs DNS?
eric@box:~$ dig @127.0.0.1 mailinabox.email
; <<>> DiG 9.11.3-1ubuntu1.17-Ubuntu <<>> @127.0.0.1 mailinabox.email
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 37566
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 423474060cafb8e49364dedd6276daa17d38102ab0f45bd7 (good)
;; QUESTION SECTION:
;mailinabox.email. IN A
;; Query time: 156 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sat May 07 16:46:25 EDT 2022
;; MSG SIZE rcvd: 73
eric@box:~$ dig @75.75.75.75 mailinabox.email
; <<>> DiG 9.11.3-1ubuntu1.17-Ubuntu <<>> @75.75.75.75 mailinabox.email
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52722
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;mailinabox.email. IN A
;; ANSWER SECTION:
mailinabox.email. 84065 IN A 94.76.202.152
;; Query time: 20 msec
;; SERVER: 75.75.75.75#53(75.75.75.75)
;; WHEN: Sat May 07 16:46:36 EDT 2022
;; MSG SIZE rcvd: 61