I have had Mail in a box for almost a year now, everything has been going great for me until I had to reset the server completely, I reinstalled ubuntu 22.04 and installed MIAB on a clean instance, however I am now getting this
sudo: unable to resolve host domain because new user: Temporary failure in name resolution
I tried going to the admin panel and it’s telling me to set up the DNS on my service provide when the nameservers are already pointing to the box, I think it was a bit iffy when I first set it up and I might’ve made a mistake however I can’t see the problem or fix it, I tried setting the external dns inside the panel to the IP address however that doesn’t solve the problem despite DIG command returning the ip correctly from the server’s dns, am I missing something?
Let me clear this up since I feel like I did a horrible job with explaining my current DNS settings, here are my godaddy settings, they are referring to the correct IP and mailinabox is running on that IP without any problems however it’s unable to forward the DNS as expected
Resolution
Solution:
• This issue can occur if the host name is not updated or incorrect in the /etc/hosts file.
• To address this issue update the hostname or FQDN of the Archiving server in the /etc/hosts file and save the file.
Example:
127.0.0.1 hostname
Attempt to use the sudo command after updating the hosts file and it should work fine.
Check that you gave the server the right name, if I recall correctly, the install instructions are very specific about this.
Your Box Has A Name
Every machine connected to the Internet has a name and an address.
The address, an IP address, is like a telephone number. It’s made up of numbers and is assigned to you by whoever provides Internet access to your mail server (that’s coming in the next section).
The name — called a hostname — is something you decide. It can be a domain name you own or any “subdomain” of a domain you own.
For your Mail-in-a-Box, we recommend naming your box box + . + your domain name.
Josh’s Mail-in-a-Box is named box.occams.info. This is its hostname.
Your Mail-in-a-Box may handle the email or multiple domain names, but the box has a single name.
Your box’s name CANNOT be a domain name that you intend to serve a website on from another web hosting service. We strongly suggest using a subdomain like box, as in the example above, so that you are able to use the main domain name for a website hosted from another web hosting service if you choose.
It does not look to me that this is the case. Maybe @Noodles obtained new IPs with the new instance and forgot how to edit GoDaddy’s stupid admin panel. I remember that custom nameservers settings are hidden somewhere in their admin panel. Nonetheless his NS settings are wrong as per the screenshot.
And @Noodles please change TTL settings to low values for shorter propagation.
No I didn’t receive any new addresses, I am using the same server, that’s why I am very confused, I haven’t touched anything in godaddy for almost a year
telnet box.elitesoftworks.com 25
telnet: could not resolve box.elitesoftworks.com/25: Temporary failure in name resolution
From 3 of my servers: Frankfurt, Amsterdam and Toronto.
I can connect to your port 25 with IPV4 no problem.
telnet 154.38.163.82 25
Trying 154.38.163.82...
Connected to 154.38.163.82.
Escape character is '^]'.
220 box.elitesoftworks.com ESMTP Hi, I'm a Mail-in-a-Box (Ubuntu/Postfix; see https://mailinabox.email/)
So are you still getting the same error? Can you do me a favor and relay any errors or issue you’re getting in bullet points? I have admittedly gotten confused with the replies and suggestions and am not 100% about what you’re experiencing.
I can confirm this worked as a workaround to get that domain back working. I have not tried to set it back to using MiaB yet for DNS, but the other 5 domains I have don’t seem to have the same issue, even though they are also on GoDaddy.
it’s good to know I am not crazy as I have had some uncomfortable conversations with their tech teams and they isolate their networking guys so that even the phone support people can only interact with them via chat. Maddening.
We may need to get together on a call to show them that their sh!t is messed up. The love to gaslight and say that since we are not using all GD services then it MUST be an issue with our side.
I have had my systems and my entire work offline for almost 2 weeks now and the crazy thing was I didn’t change anything and it was working just fine so I thought it 100% had to be wrong configuration on my end, but you are right, I think this happened before and I solved it by mistake by resetting the godaddy settings but I only noticed so now because it was 100% working