(Ted Harding) wrote:
On 16-Oct-04 Don Parris wrote:
(Ted Harding) wrote:
I'd suggest setting these in the /etc/hosts file which should look like
127.0.0.1 localhost lh 192.168.0.1 mach1.dons.dom.ain mach1 m1 192.168.0.2 mach2.dons.dom.ain mach2 m2 192.168.0.3 mach3.dons.dom.ain mach3 m3
and so on.
My hosts file looks more like:
127.0.0.1 localhost lh 192.168.0.1 mach1.dom.ain mach1 192.168.0.2 mach2.dom.ain mach2 192.168.0.3 mach3.dom.ain mach3
My /etc/hosts.conf is the same.
I am attempting to send e-mail as - To: user2@mach2.dom.ain
And therein is where my problem likely lies. I need to rename the domain, so that the domain name is something like dons.dom.ain, instead of dom.ain. Would that be correct?
I don't think there should be a problem about the number of components in your machine names so long as there are at least two: one for the individual machine (the first) and the rest to designate the domain that the different machines belong to.
When you wrote "/etc/hosts.conf", was this correct? This is not a standard file in the DNS system. There is (or should be) a file "/etc/host.conf". However, if /etc/host.conf is what you meant, then I'm concerned that you say this "is the same" (?as /etc/hosts?).
Sorry about that. I meant /etc/hosts. Not sure why I put the ".conf" in there. I have changed my hosts file to match your scheme. The host.conf file is correctly configured (same as what you suggested).
/etc/hosts and /etc/host.conf files. When you send mail from [1] to [2], [2] may carry out a "reverse DNS lookup" on the "From: " address in the mail, in order to check that the mail is coming from a valid source (anti-spoofing and anti-relay precaution). If [2] can't find [1]'s IP address in its /etc/hosts (or however it looks it up) then you could get mail rejected. So each machine you mail from would need to be findable by each machine on your LAN that you mail to.
However, this probably doesn't apply in your case since apparently you can mail to an IP address. So it's more likely to be a case of destination machine-name not translating to IP address on the sending machine.
I'll nose around some more. -- DC Parris http://matheteuo.org/ http://chaddb.sourceforge.net/ "Free software is like God's love - you can share it with anyone anytime anywhere."