(12-16-2009 06:33 AM)pete Wrote: You're great value motokochan, I already owe you a few pints. Why didn't I think of adding the domain to my hosts file myself? That was a brilliant suggestion, thanks.
I'm a tea drinker, but thanks for the thought.
(12-16-2009 06:33 AM)pete Wrote: Trying to be clever (but no doubt making myself look extra stupid instead) I added the following to my hosts file:
1.12.123.234 blah.co.nz mail.blah.co.nz
I was hoping that by doing this and installing an SMTP server on my local machine I could send mail to:
somebody@blah.co.nz
and it would show up in webmail and I could also use a pop3 clinet (outlook) to retrieve the mail. While my SMTP server shows that it is sending mail to somebody@blah.co.nz, it still get's delivered to gmail.
I wonder how I can properly test this?
The hosts entry looks okay, assuming you put your server's real IP and name in there.
Outside hosts will continue delivering to Google's servers until you change the MX records on the domain. The easiest test you can run is to create an account with all the settings for that server, and make sure to send to that domain on that server. That should cause a local delivery to take place.
If you want to test remote delivery, I could manually send a test e-mail to an account if you PM me the IP of the server and an e-mail address you want the mail to go to. (I'm very experienced with using telnet to talk SMTP directly.)