LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 01-19-2004, 06:21 PM   #1
mike_smith
LQ Newbie
 
Registered: Jan 2004
Location: Negril, Jamaica
Distribution: Red Hat 9
Posts: 2

Rep: Reputation: 0
Sendmail and incoming connections


Hi,

I am trying to connect to sendmail 8.12.5 running on a RH9 box. Sendmail is running and i can connect like

[root@goran /]# telnet localhost 25

from the machine that sendmail is on, but not like

[root@goran /]# telnet 192.168.1.55 25

or by using the domain name (I am running a name server) from the machine that sendmail is on, or from another machine.

This is not a firewall issue, as the local firewall has been turned off. I can connect to the machine via ssh and smb.

Is there some sort of other option that sendmail uses to reject connections, or maybe some thing I could put in hosts.*? The hosts files are empty right now.

Thanks in advance for your help.

-M
 
Old 01-19-2004, 06:27 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
Welcome to LQ.

Check that sendmail is bound to all devices and not just the loopback:
netstat -nlp

Also check your firewall rules:
iptables -L
 
Old 01-19-2004, 07:02 PM   #3
mike_smith
LQ Newbie
 
Registered: Jan 2004
Location: Negril, Jamaica
Distribution: Red Hat 9
Posts: 2

Original Poster
Rep: Reputation: 0
netstat -nlp says, among other things:

tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 631/sendmail: accep

The daemon accepts connections from localhost, but not through the network.

As for iptables -L, the output is

[root@goran /]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

The firewall is not running, and all other services that are on will accept connections.

Thanks again for the fast reply.
 
Old 01-19-2004, 07:05 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
You are only listening for connections on the loopback - you will need to edit your sendmail.mc file and "dnl" the line refering to the loopback then reload your sendmail config and the sendmail daemon.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot Allowing Incoming X Connections with xhost + libin88 Linux - Enterprise 1 11-09-2005 04:25 PM
Listening for incoming connections vital_101 Mandriva 9 09-20-2005 09:26 PM
Discovering the true IP of incoming connections fibbi Linux - Networking 2 06-14-2005 02:46 AM
restricting incoming connections, using sockets SoulSkorpion Programming 2 10-20-2004 04:15 AM
Allowing incoming connections only from a spesific country? herc Linux - Security 1 04-12-2004 03:56 AM


All times are GMT -5. The time now is 07:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration