In web, I changed the file directory for mail.example.com from www/default, so it just shows “mail example”. That works just fine.
But now when I go to custom DNS, and set an A record on example.com to another IP where I have my webserver setup, it just redirects back to mail.example.com.
Am I doing something wrong or is there an actual issue here?
to verify that the box is serving the correct DNS.
If that’s correct, then run:
dig example.com
to see if your personal computer is resolving the domain to the updated IP address. DNS results are cached throughout the Internet so it can take some time (~1 hour) for changes in DNS to really take effect.
If wget is connecting to the other server, and you are getting a redirect from that sever, then your problem is with that server and not your Mail-in-a-Box.
It’s not getting a redirect from the other server though. If I save the result of what wget downloads from http://example.com, it downloads what I have set as the default Apache page.
If I ping example.com, it returns the proper IP but times out, yet wget can download the default Apache page from the same IP/server?