Author Topic: Testing email server but without proper MX records pointing to it  (Read 353 times)

Piotr GRD

  • Full Member
  • ***
  • Posts: 249
    • View Profile
    • Piotr GRD Network
I am not an expert in how the email services works, so forgive me if it's obvious...


When/if I need to move the website to a different server I like to test if it works correctly before putting it online. So usually I upload files, install everything etc. and by editing my host file I can bypass current real DNS settings and access new server to test everything before switching DNS for the rest of the world. It's quick and easy - simple short entry in the host file.

Now I would like to do the same for email server. I would like to test if it will accept and forward in the way I want the incomming emails sent to addresses @ mydomain, but without changing the MX records, yet. I would prefer to find most easy and quick method for just 2-3 tests (from my local machine or from any other existing server) without need to spent too much time on installing too much software just for these 2-3 tests - if so I'll pass and take a risk that emails won't be delivered for a day.


Thanks.

rvtraveller

  • The very scary
  • Administrator
  • Hero Member
  • *****
  • Posts: 1187
    • View Profile
Re: Testing email server but without proper MX records pointing to it
« Reply #1 on: October 20, 2011, 07:48:19 PM »
What I do is operate my own DNS server(s) internal to my network and use them for all my computers.  I have them set up to forward DNS queries they don't know to Google's DNS.  However, the real power comes when I need to test new servers, I can just modify those DNS records for the new set up and (almost) instantly I am on the new server.  Would this work for you?

Piotr GRD

  • Full Member
  • ***
  • Posts: 249
    • View Profile
    • Piotr GRD Network
Re: Testing email server but without proper MX records pointing to it
« Reply #2 on: October 21, 2011, 01:14:36 AM »
This would definitelly work. But having really limited hardware resources (especially in the matter of physical memory and HDD space and HDD I/O speed) I won't install DNS server for good, and setting it up just for 2-3 email tests...

Thank you. : )


Piotr GRD

  • Full Member
  • ***
  • Posts: 249
    • View Profile
    • Piotr GRD Network
Re: Testing email server but without proper MX records pointing to it
« Reply #3 on: October 22, 2011, 01:54:00 PM »
Sometimes I have brilliant ideas how to do something, sometimes I don't see the obvious things...

Do you remember, maybe, when I didn't check the BIOS (most obvious place) for the possibility to automatically start the computer after power failure? Well...

I have launched "Mercury" from the XAMPP package that I have on my HDD already and... it appears that I can set it to use ANY nameserver I want... So I can use the nameserver of the new (future) webhost that already has new (future) DNS settings.

<feeling dumb. again>


The last problem is... I can not get the Mercury to work. ; D Best I did achieve was error while trying to connect to the external mail server (I have tried couple of them)... Well... obviously I have no idea how the email services works. : ) I have to try again the next day with the fresh mind.