(Ted Harding) wrote:
On 15-Oct-04 Don Parris wrote:
Well gang, I've got a few boxes running SUSE 8.0 Pro. I would like to be able to send mail between hosts on the LAN, which is not connected to the outside world. The Yast Mail module didn't do anything that I can tell. At leasat I don't get e-mail between hosts. Having viewed the READMEs and other documentation, I think I'm more confused than enlightened.
I'm using a hosts file - not a DNS server. (I know that sendmail can use a "well-formed" hosts file.)
You may need to probe a bit to get to the bottom of what's wrong. Sendmail should work fine on a LAN (there can be complications if you also mail to the outside world, e.g. via dial-up: you may then need to explicitly despatch the outgoing mail using a modified sendmail.cf file so as to masquerade your sending machine).
As a first test, try seeing of you can send mail between your local machines using explicit IP addresses.
Suppose (but modifiy the IP addresses to match your local setup) you have three machines whose IP addresses are
192.168.0.1 192.168.0.2 192.168.0.3
and you are sitting at [1] and want to send a message to user "don" at [2]. Then, when entering the "To:" destination address, enter
don@[192.168.0.2]
(note the square brackets). If it goes through, then sendmail is doing its job and also [2] is accepting SMTP connections.
Well, I hadn't though of using the IP address (and wouldn't have known to add the brackets, either). Anyway, that works. /var/log/mail shows a hostname lookup failure where I used the domain name instead. So how do I use the domain name instead of the IP addresses? Is this where I need to add the host names in /etc/mail/local-host-names? -- DC Parris http://matheteuo.org/ http://chaddb.sourceforge.net/ "Free software is like God's love - you can share it with anyone anytime anywhere."