Question:
Local exchange mail server, from wifi mobiles not working...?
djdx2
2016-05-27 23:59:36 UTC
So when a mobile device, access's my email server it works fine...
But when they try over local wifi (where the exchange server is sitting) it dosnt work....

Now i know why this happens, the request to the mail server (mail.domain.com.au) goes OUT through the router and tries to come BACK IN through the same router, and this isnt possible.
So i have to create a DNS record to router it to the local IP (where the exchange server is sitting).

HOW DO I DO THIS?
i have tried many times, hasnt worked.
I tried testing by pinging the entry (ping mail.domain.com.au) and it still resolves the external IP, not the local (192.168.0.2)

More info : my local domain (pcdomain.local) is NOT the same as the internet address (mail.diffpc.com.au).
Five answers:
?
2016-08-15 08:41:50 UTC
2
Richard
2016-05-28 01:43:09 UTC
Fred is almost right.



You don't say what OS your mobile device is running. If it is Android, then for your specific wireless network on your mobile device, set that network up to use a static address, with the gateway being the address of your router, but the DNS server being the address of your mail server. Then on your mail server, set up the mail service to be the server's own address, but set up the default for addresses that are not configured in the mail server to go to the router or an external DNS. You may have to find a specific DNS server application to run on the mail server, and also configure your email URL into the hosts file on your mail server.



Keep the router's DHCP enabled so that other devices will work without requiring you to configure static addresses.



Unfortunately, Microsoft made a mistake when it implemented wireless networks in Windows. Whereas Android (and I suspect iOS and Linux) allow you to configure different IP settings on different wireless networks, Windows associates the settings with the specific network adapter, and not with individual wireless networks. This means that for windows devices you will end up having the change the address settings when you move portable Windows devices between your own wireless networks and other wireless networks.



If you follow Fred's suggestion of turning off the DHCP in the router, then you will need to use static addresses on your home network, which require changing when you connect a Windows device to a different WiFi network or any device to a different Ethernet connection.



A different solution for Windows machines would be to set up a couple of BAT files - one for internal mail and one for normal network operation. It is possible to use the NET command (if I have remembered the correct command) to configure the addresses of any Windows network adapter. Run one batch file to configure a static address to select your internal mail server, and a second batch file to go to fully automated (DHCP) address settings. Unfortunately, I cannot remember exactly what I did so you will have to research this.



I hope this helps.
BigE
2016-05-28 08:16:10 UTC
Are your infrastructure using windows DNS servers? The only way to do this is to make another DNS instance auth for the zone, and for everything else make it forward to your normal one or just have it recurse the rest, since it is internal service. That way, you split the DNS into internal and external resolution.



If you use Bind, then you can use views, but unlikely you are.
2016-05-28 01:14:19 UTC
You need to turn OFF the router dhcp and dns. Then run both from your internal server. So you need to set up a local only dns server with the internal IP as the domain address of mail.diffpc.com.au as the only record. That makes it a domain of its' own to the internal network. Then mset up dhcp to tell the machines to use the server as the dns server rather than the router.
Jessica
2016-05-28 01:20:41 UTC
How come I have an ip address and you can swap a number and it still works.. and is it my weight for a number. Or the car I don't drive for the name. Not in or out.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...