[lug] sendmail not accepting

Gary Hodges Gary.Hodges at noaa.gov
Wed Oct 31 11:49:40 MST 2001


Chip Atkinson wrote:

> Ok, how about ipchains -L ?  You can also use "netstat -lenp" to show
> what ports are being listened on and by who.

Sorry, I didn't include the ipchains on the previous post.  I did have all the
firewall settings turned off, so ipchains -L didn't do anything.  I just
configured using lokkit which in turn edits the /etc/sysconfig/ipchains file.
Running ipchains -L now gives:

[root at space redhat]# /sbin/ipchains -L
Chain input (policy ACCEPT):
target     prot opt     source                destination           ports
ACCEPT     tcp  -y----  anywhere             anywhere              any ->   ssh

ACCEPT     tcp  -y----  anywhere             anywhere              any ->
telnet
ACCEPT     tcp  -y----  anywhere             anywhere              any ->
smtp
ACCEPT     tcp  -y----  anywhere             anywhere              any ->
http
ACCEPT     tcp  -y----  anywhere             anywhere              any ->   ftp

ACCEPT     all  ------  anywhere             anywhere              n/a
REJECT     tcp  -y----  anywhere             anywhere              any ->
0:1023
REJECT     tcp  -y----  anywhere             anywhere              any ->   nfs

REJECT     udp  ------  anywhere             anywhere              any ->
0:1023
REJECT     udp  ------  anywhere             anywhere              any ->   nfs

REJECT     tcp  -y----  anywhere             anywhere              any ->
x11:6009
REJECT     tcp  -y----  anywhere             anywhere              any ->   xfs

Chain forward (policy ACCEPT):
Chain output (policy ACCEPT):

And now for the netstat command...

[root at space redhat]# netstat -lenp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
User       Inode      PID/Program name
tcp        0      0 0.0.0.0:32768           0.0.0.0:*               LISTEN
29         986        743/rpc.statd
tcp        0      0 127.0.0.1:32769         0.0.0.0:*               LISTEN
0          1120       925/xinetd
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN
0          925        715/portmap
tcp        0      0 0.0.0.0:6000            0.0.0.0:*               LISTEN
0          1323       1131/X
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN
0          1124       925/xinetd
tcp        0      0 0.0.0.0:23              0.0.0.0:*               LISTEN
0          1123       925/xinetd
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN
0          1171       965/sendmail: accep
udp        0      0 0.0.0.0:32768           0.0.0.0:*
29         983        743/rpc.statd
udp        0      0 0.0.0.0:919             0.0.0.0:*
0          959        743/rpc.statd
udp        0      0 0.0.0.0:111             0.0.0.0:*
0          924        715/portmap
Active UNIX domain sockets (only servers)
Proto RefCnt Flags       Type       State         I-Node PID/Program name
Path
unix  2      [ ACC ]     STREAM     LISTENING     1189   984/gpm
/dev/gpmctl
unix  2      [ ACC ]     STREAM     LISTENING     1424   1144/gnome-session
/tmp/.ICE-unix/1144
unix  2      [ ACC ]     STREAM     LISTENING     1478   1238/sawfish
/tmp/.sawfish-hodges/space.srrb.noaa.gov:0.0
unix  2      [ ACC ]     STREAM     LISTENING     1859   1297/fam
/tmp/.fam_socket
unix  2      [ ACC ]     STREAM     LISTENING     1324   1131/X
/tmp/.X11-unix/X0
unix  2      [ ACC ]     STREAM     LISTENING     1573   1266/panel
/tmp/orbit-hodges/orb-1626138425717714682
unix  2      [ ACC ]     STREAM     LISTENING     1590   1270/gnome-name-ser
/tmp/orbit-hodges/orb-7601558321012149050
unix  2      [ ACC ]     STREAM     LISTENING     1609   1262/nautilus
/tmp/orbit-hodges/orb-1723935621371739279
unix  2      [ ACC ]     STREAM     LISTENING     1629   1275/oafd
/tmp/orbit-hodges/orb-16417518361778895955
unix  2      [ ACC ]     STREAM     LISTENING     1645   1280/gconfd-1
/tmp/orbit-hodges/orb-1930181074942915576
unix  2      [ ACC ]     STREAM     LISTENING     1243   1054/xfs
/tmp/.font-unix/fs7100
unix  2      [ ACC ]     STREAM     LISTENING     1752   1285/tasklist_apple
/tmp/orbit-hodges/orb-912619300574470248
unix  2      [ ACC ]     STREAM     LISTENING     1757   1287/deskguide_appl
/tmp/orbit-hodges/orb-3990366991409679902
unix  2      [ ACC ]     STREAM     LISTENING     1796   1290/multiload_appl
/tmp/orbit-hodges/orb-2067192060490740421
unix  2      [ ACC ]     STREAM     LISTENING     1836   1295/clockmail_appl
/tmp/orbit-hodges/orb-390667730299657831
unix  2      [ ACC ]     STREAM     LISTENING     1874   1303/nautilus-throb
/tmp/orbit-hodges/orb-16167212172119631044
unix  2      [ ACC ]     STREAM     LISTENING     1927   1311/hyperbola
/tmp/orbit-hodges/orb-14092928651793276019
unix  2      [ ACC ]     STREAM     LISTENING     1989   1315/nautilus-news
/tmp/orbit-hodges/orb-13681319871193863731
unix  2      [ ACC ]     STREAM     LISTENING     2013   1317/nautilus-notes
/tmp/orbit-hodges/orb-2470250051119088903
unix  2      [ ACC ]     STREAM     LISTENING     1561   1259/magicdev
/tmp/orbit-hodges/orb-20174103211311007076
unix  2      [ ACC ]     STREAM     LISTENING     2078   1313/nautilus-histo
/tmp/orbit-hodges/orb-1195298551528578712


> Gary Hodges wrote:
>
> > Chip Atkinson wrote:
> >
> >
> >> Can you ping the IP address of space?
> >
> >
> > Yes.
> >
> >
> >> You should verify that the IP address is the IP address of the machine
> >> that you are on.  Use ifconfig eth0 (assuming only one ethernet card).
> >
> >
> > ~>/sbin/ifconfig eth0
> > eth0      Link encap:Ethernet  HWaddr 00:10:5A:67:86:39
> >           inet addr:140.172.144.174  Bcast:140.172.144.255
> > Mask:255.255.255.0
> >           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >           RX packets:628 errors:0 dropped:0 overruns:0 frame:0
> >           TX packets:235 errors:0 dropped:0 overruns:0 carrier:0
> >           collisions:0 txqueuelen:100
> >           RX bytes:92449 (90.2 Kb)  TX bytes:16343 (15.9 Kb)
> >           Interrupt:11 Base address:0xe000
> >
> >
> > Just for kicks...
> >
> > ~>ps auxw | grep sendmail
> > root       965  0.0  0.3  5300 1996 ?        S    10:55   0:00 sendmail:
> > accepting connections
> >
> > Cheers,
> > Gary
> >
> >
> >
> >> Gary Hodges wrote:
> >>
> >>
> >>> On a mostly fresh install of RH 7.2 I'm unable to send email to this
> >>> machine.  I can send mail from this machine to this machine, just not
> >>> from another machine.  If I run the following command :
> >>>
> >>> ~>telnet localhost 25
> >>> Trying 127.0.0.1...
> >>> Connected to localhost.
> >>> Escape character is '^]'.
> >>> 220 space.srrb.noaa.gov ESMTP Sendmail 8.11.6/8.11.6; Wed, 31 Oct 2001
> >>> 10:34:06 -0700
> >>>
> >>> If I run:
> >>> ~>telnet space 25
> >>> Trying 140.172.144.174...
> >>> telnet: connect to address 140.172.144.174: Connection refused
> >>>
> >>> So I guess sendmail is working, but for some reason it is not accepting
> >>> connections to the machine name.  I feel like it must be how I've set up
> >>> networking, but I've tried a bunch of different things there with no
> >>> luck.  I have also tried the "no firewall" setting.
> >>
> >
> > _______________________________________________
> > Web Page:  http://lug.boulder.co.us
> > Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
>
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug




More information about the LUG mailing list