In part 1, I wrote about shifting static sites from one server to another. This is a small addendum to that post and other posts that I will write about shifting sites. This one is about how to retrieve left-over emails. I kept this separately because the same steps apply whether the site is static or dynamic. It also doesn’t matter how you backup/restore your site. Steps to retrieve emails will remain the same.
Here are the steps in brief. Please note that these steps are to be used after DNS propogation is over and not before that. This is for retrieving mails from “old” hosting account. In my opinion, at least for a week, you need to have access to both the hosting accounts – old and new.
- IP Address:
Before you change DNS, get the IP address of the mail server from the old hosting provider. You can also get it by using the ping command from the command line.
(syntax: ping mail.your-site.com).
- Configure mail client:
In your mail client (Outlook, Outlook Express, Evolution, KMail, Bat, Eudora, etc.) change the POP3 server to the old IP address.
- Old password:
In the password field, type in the old password of your email account and then check the mail. This will download all your mails from you old server.
- Revert back:
After this, you should revert back to new POP3 settings and password.
Done if you are using POP3. 🙂
However, if were using web-based mail interface, then instead of your domain name, you will have to use the IP address to login to your mail account. For example, instead of something like http://www.your-site.com/webmail/ OR http://www.your-site.com/mail/, you will have to use http://old.ip.add.ress/webmail/ or http://old.ip.add.ress/mail/.
If someone is wondering how can there be any left-over emails on the old server, here is a very simplified example of what can happen.
- 10:00 am Friday:
You decide to switch hosting and get a new hosting account.
- 4:30 pm Friday:
You transfer all your files, setup your mail accounts and are ready for a DNS change.
- 5:00pm Friday:
You check your email and make the DNS change, leave office.
- 5:30pm Friday:
A client sends you an email with bulk requirements. If this order is carried out, the profit will let you take that dream world tour that you have been postponing. 😉 But the mail goes to your old server because DNS propogation takes upto 48 hours and its still not even one hour since you applied.
- 11:00am Monday:
You are back in office after a nice weekend. The DNS propogation has taken effect. When you check your mails, you get some mails that are on the new server. But you never get the mail that could have given you your dream vacation!
In part 3, I will ennumerate general steps for transferring a dynamic, database driven website.
Licensed under Creative Commons Attribution-NonCommercial-NoDerivs 2.5 License.