Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
I'm running a new install of RedHat 9. I am unable to make a remote connection to port 25 nor am I able to telnet into the machine. However, I am able to ping the internal lan address and send mail from the local host. I have disabled the local firewall. What gives????
prefer SSH instead of telnet for security. by the default sendmail smtp daemon listens to only loopback. so u cannot connect to your linux via port 25. u must tell sendmail to listen to all interfaces. if u really want to run telnet. fisr make sure if it works.
run following commands:
#ntsysv
check telnet is on.
#/etc/init.d/xinetd restart
Telnet in not among the choices. Also, I know that it is refusing smtp connections because I cannot use it to send email from another pc nor can telnet to that address with port 25.
There is nothing in the hosts.deny file. I thought maybe I needed to edit the sendmail.mc file by adding the LAN ip address to the DEAMON_OPTIONS entry. Mine currently looks like this:
2) Look for the following line:
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
3) change the above line to:
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
---or---
you can leave the 127.0.0.1 line and add a second one that references the eth0 address. i.e.
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=192.168.9.3, Name=MTA')dnl
The above is equivelent to commenting the 127.0.0.1 line. i.e. If there is no DAEMON_OPTIONS, then all interfaces are enabled.
4) Save /etc/mail/sendmail.mc after making the above change in step 3
5) Restart sendmail. Since you're using redhat, a new sendmail.cf will be created from sendmail.mc
If you cannot telnet into a machine it probably means that the telnet daemon is not running on that machine. In many distributions, I think Redhat is one, they split telnet into a two install process. There is the telnet server, which starts the daemon, and the telnet client, which allows you to telnet to another box. Both portions must be installed and enabled, for telnet to work. You will probably also have to configure the file controlling the activity of the daemon. I think it is located in /etc/xinetd.d. There will be a series of files each controlling the activity of one daemon. You would have to edit the one affecting telnetd, the telnet daemon
Also, I made the changes to the sendmail.mc file and saved by using the command:
# makemap hash /etc/mail/access < /etc/mail/access
# service sendmail restart
Still a no go. Also tried:
# make -C /etc/mail
# service sendmail restart
I must be missing something easy but dang!! Anyway thanks for all of the help!
Also, I made the changes to the sendmail.mc file and saved by using the command:
# makemap hash /etc/mail/access < /etc/mail/access
# service sendmail restart
Huh? You mentioned making changes to sendmail.mc, but rebuilt the access database.
Quote:
Still a no go. Also tried:
# make -C /etc/mail
# service sendmail restart
The redhat sendmail init script runs make -C /etc/mail during a start or restart. So, a new sendmail.cf file will be created along with any database file that changed. i.e. /etc/mail/access
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.