Web Hosting Talk







View Full Version : Intersting Question


stephenn
10-31-2002, 04:56 PM
hi,

If you have setup two domains in same server and if you configure one of the domains mx record point to external email handler such as sitemail or etc.

If you send a mail from one domain to other domain which is pointed to external email handler, would this mail handle by internally or would it send it to external mx handler?



Thanks

CipherVendor
10-31-2002, 08:12 PM
This is usually handled by the localdomains file located in /etc.

If a domain is listed in that file, the server will assume the domain is local. So if you set mx records to point externally, remove the domain from that file.

stephenn
10-31-2002, 09:54 PM
hi,

which file in /etc/

thanks

CipherVendor
10-31-2002, 10:02 PM
Originally posted by CipherVendor
This is usually handled by the localdomains file located in /etc.

stephenn
10-31-2002, 10:29 PM
last reply was empty.

thanks

stephenn
10-31-2002, 10:33 PM
sorry

I got you wat yo meant.


Thanks

stephenn
11-03-2002, 02:56 PM
I have deleted the local domains and still handling internally, how could I make to handle by externally.

Thanks

stephenn
11-03-2002, 09:52 PM
Hi,

Bofore it pass it to Mail Exhanger(mx), does the host look for local server?

Thanks

bobcares
11-05-2002, 01:22 PM
Hi!
I think this should help.
There is a file called /etc/nsswitch.conf. This file stores the sequence.
make it dns before files. Then the dns record is seen before the files ( /etc/hosts )

Have a great day :)

regards
amar