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?). On my machines, /etc/host.conf contains only the single line order hosts,bind with (on some machines) also the line multi on You might also have a line or lines beginning with the keyword trim where you would indeed have a domain name, e.g. trim .dom.ain intended to cause this to be stripped from FQDNs so that mach1.dom.ain would be seen as mach1 on the local net. However, this doesn't seem to be neccessary (I've never had such a line) and provided your /etc/hosts file contains the IP addresses for all your local machines you should be OK. See 'man host.conf' for fuller explanations of what can go in this file. Another thing to check is that all your machines have consistent /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. Good luck again! Ted. -------------------------------------------------------------------- E-Mail: (Ted Harding) <Ted.Harding@nessie.mcc.ac.uk> Fax-to-email: +44 (0)870 094 0861 [NB: New number!] Date: 16-Oct-04 Time: 12:21:03 ------------------------------ XFMail ------------------------------