[SOLVED] how to send mails on local network from one computer to another computer
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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 ~]$
at that time telnet server was not installed on desktop4.suresh.com.. so i installed it now
OK, please remove the telnet server package. I should have spelled out you telnet from admin.suresh.com to desktop4.suresh.com on port TCP/25 to test if the MTA can be contacted and if it accepts a message:
Code:
]$ telnet desktop4.suresh.com 25
EHLO jilaiya
MAIL FROM: ravana@admin.suresh.com
RCPT TO: kali@desktop4.suresh.com
DATA
SUBJECT: I am son of Comander of Army [ NOT SPAM] of former Presdent of Countyr, who crashed with car, and have busenes oppertuneteh for yous! Makeh Moneys now!!!!
.
QUIT
OK, please remove the telnet server package. I should have spelled out you telnet from admin.suresh.com to desktop4.suresh.com on port TCP/25 to test if the MTA can be contacted and if it accepts a message:
Code:
]$ telnet desktop4.suresh.com 25
EHLO jilaiya
MAIL FROM: ravana@admin.suresh.com
RCPT TO: kali@desktop4.suresh.com
DATA
SUBJECT: I am son of Comander of Army [ NOT SPAM] of former Presdent of Countyr, who crashed with car, and have busenes oppertuneteh for yous! Makeh Moneys now!!!!
.
QUIT
Ok
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
Is that the only line it returns or does it also say "telnet: Unable to connect to remote host: Connection refused" after that?
When i am trying to connect telnet to desktop4.suresh.com from admin.suresh.com it is showing only
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:
Now log in to desktop4.suresh.com, be root and post the output of:
only the Mail Transport Agent (MTA) listens and not the Mail Submission Agent (MSA), plus the MTA has a default configuration because it only listens on the loopback device...
...which its configuration confirms. Sorry for the late reply but you need to add two lines to /etc/mail/sendmail.cf: one for the MTA to listen on the LAN IP plus one for the MSA (DaemonPortOptions=Port=submission).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.