how to send mails on local network from one computer to another computer
Hi,
How to send mail's in local network from one computer to another computer. I have configured sendmail and dovecot in both computers, both are in same domain, my access(/etc/mail/access.cof) file configuration is same in both computer's i.e Connect:suresh.com RELAY Computer one :- Hostname : admin.suresh.com username : shiva Computer two :- Hostname : desktop4.suresh.com Username : ramesh Here I can send mail's in both computer's for their respective user's only, but I am unable to send mail from 1st computer to user of second computer. Example's of how I am sending mail to different computer's [root@suresh] mail -s "test" shiva@admin.suresh.com ----- working fine [shiva@suresh] mail -s "test" root@admin.suresh.com ------ working fine [root@suresh] mail -s "test" ramesh@desktop4.suresh.com ----- not working Thanks Suresh |
So what does /var/log/maillog or equivalent say?
|
[root@admin log]# tailf /var/log/maillog
Nov 22 18:06:34 admin sendmail[11361]: qAMCaY9j011361: from=root, size=67, class=0, nrcpts=1, msgid=<201211221236.qAMCaY9j011361@admin.suresh.com>, relay=root@localhost Nov 22 18:06:34 admin sendmail[11362]: qAMCaYmw011362: from=<root@admin.suresh.com>, size=358, class=0, nrcpts=1, msgid=<201211221236.qAMCaY9j011361@admin.suresh.com>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1] Nov 22 18:06:34 admin sendmail[11361]: qAMCaY9j011361: to=rajesh@desktop4.suresh.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30067, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (qAMCaYmw011362 Message accepted for delivery) Nov 22 18:06:34 admin sendmail[11364]: qAMCaYmw011362: to=<rajesh@desktop4.suresh.com>, ctladdr=<root@admin.suresh.com> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120358, relay=desktop4.suresh.com. [192.168.10.201], dsn=4.0.0, stat=Deferred: Connection refused by desktop4.suresh.com. |
Quote:
|
Quote:
Not generating any log's on /var/log/maillog of desktop4.suresh.com |
Can you telnet to 192.168.10.201 and make it accept a message from the command line?
|
Quote:
Trying 192.168.10.201... telnet: connect to address 192.168.10.201: Connection refused |
Is the MTA running?
Else check the firewall? |
Sorry..
at that time telnet server was not installed on desktop4.suresh.com.. so i installed it now it was working now [root@admin ~]# telnet 192.168.10.201 Trying 192.168.10.201... Connected to 192.168.10.201. Escape character is '^]'. CentOS release 5.5 (Final) Kernel 2.6.18-194.el5 on an i686 login: ramesh Password: Last login: Thu Nov 22 21:20:01 from admin.suresh.com [ramesh@desktop4 ~]$ |
Quote:
and firewall is disabled on both computers |
Quote:
Code:
]$ telnet desktop4.suresh.com 25 |
Quote:
Removed telnet-server from both admin.suresh.com and desktop4.suresh.com and then tried to connect telnet from admin.suresh.com to desktop4.suresh.com with port 25 [root@admin ~]# telnet desktop4.suresh.com 25 Trying 192.168.10.201... telnet: connect to address 192.168.10.201: Connection refused |
Quote:
Now log in to desktop4.suresh.com, be root and post the output of: Code:
pgrep -lf sendmail |
Quote:
Trying 192.168.10.201... telnet: connect to address 192.168.10.201: Connection refused, But when trying to connect telnet from desktop4.suresh.com to admin.suresh.com it is showing telnet: connect to address 192.168.10.53: Connection refused telnet: Unable to connect to remote host: Connection refused Quote:
2282 sendmail: accepting connections 2290 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue [root@desktop4 ~]# pgrep sendmail|while read P; do lsof -Pwlnp $P -ai; done COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME sendmail 2282 0 4u IPv4 7446 TCP 127.0.0.1:25 (LISTEN) [root@desktop4 ~]# netstat -antlpe|grep sendmail tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 0 7446 2282/sendmail: acce [root@desktop4 ~]# grep ^O.*Addr= /etc/mail/submit.cf /etc/mail/sendmail.cf /etc/mail/submit.cf:O DaemonPortOptions=Name=NoMTA, Addr=127.0.0.1, M=E /etc/mail/sendmail.cf:O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA Thanks Suresh |
Quote:
Quote:
Quote:
|
All times are GMT -5. The time now is 03:03 AM. |