Hello, I am trying to setup a LAN server and have installed a server version of RH8.0. Using the default version of the sendmail.cf file. I am able to send the mails from my local domain to the outside world (e.g. yahoo.com,rediffmail.com...etc.). Now I want to exchange mails among this server and the other machines on the LAN. I have gone through a tutorial aritcle at www.linuxjournal.com on sendmail: Introduction and Configuration. I tried to check the dns issues by using the command
nslookup -sil 192.168.1.42 Server : 202.56.... Address: 202.56....
** server can't find ......:NXDOMAIN
Then I checked the ports by using the commands
netstat -nl
The tcp port 25 was LISTENING 127.0.0.1. I changed this to my ip address of the server 192.168.1.42. by changing the following line in the sendmail.cf file
# SMTP daemon options 0 DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA,
changed to
0 DaemonPortOptions=Port=smtp,Addr=192.168.1.42, Name=MTA,
After doing this I restarted the sendmail daemon using the rc script /etc/init.d/sendmail. Then I tried to send mail to the local host as well as to the outside world. But it saying for localhost
root....Connecting to localhost.localdomain. via relay... root....Deferred: Connection refused by localhost.localdomain.
and for outside world
ash_..@yahoo.com....Connecting to localhost.localdomain. via relay.. ash_..@yahoo.com....Deferred: Connection refused by
localhost.localdomain.
Now, when I keep the tcp port open for 127.0.0.1 then it works fine for sending mails to the localhost as well as the internet. But when I change it the IP address 192.168.1.42 then it gives the above "Deferred" message which i feel is abnormal delivery.
I beg your help in this regard. Also I would request if someone could guide me setting up this exchange of mails over LAN using sendmail. Thanks. Ashwin