Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Sendmail Not Accepting Connections
CNBarnes
post Jun 4 2004, 03:18 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 5
Joined: 4-June 04
Member No.: 3,092



Ok, I feel like a dork. I know this has got to be a really easy issue,
but I sure can't seem to find it.

New install of Fedora core 1. yum updated all the packages (incl.
sendmail).

modified sendmail.mc and changed
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
to
dnl # DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

did the make -C /etc/mail

can issue "telnet localhost 25" and get a response as one would expect.
However, nothing is coming in. Telnet to the host from elsewhere (even different computer using same switch - not a firewall issue) using port 25 goes unanswered.
nmap localhost shows "25/tcp open smtp"

http and ssh to the machine are working fine


What am I missing?
Go to the top of the page
 
+Quote Post
hughesjr
post Jun 4 2004, 05:39 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



what does:

netstat -an | grep 25 | grep LISTEN | grep tcp

Mine says:

tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
hughesjr
post Jun 4 2004, 05:44 PM
Post #3


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



I think the command you want to use to update sendmail.cf is this (from within the /etc/mail directory):

m4 sendmail.mc > sendmail.cf

In order to do that, you will need the following packages installed:

sendmail
sendmail-cf
m4


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
CNBarnes
post Jun 6 2004, 09:32 AM
Post #4


Whats this Lie-nix Thing?
*

Group: Members
Posts: 5
Joined: 4-June 04
Member No.: 3,092



that netstat command on my box shows the same result.
I issued the m4 command as shown, restarted sendmail, but still nothing.

Anything else I can try?
Go to the top of the page
 
+Quote Post
Robert83
post Jun 6 2004, 04:24 PM
Post #5


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



Hi,

your /etc/hosts file should looks something like this

127.0.0.1 localhost.localdomain localhost
xxx.xxx.xxx.xxx bt.xxxxxxx.co.yu


Sincerely
Robert B


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
CNBarnes
post Jun 7 2004, 11:24 AM
Post #6


Whats this Lie-nix Thing?
*

Group: Members
Posts: 5
Joined: 4-June 04
Member No.: 3,092



It (/etc/hosts) does. I also have /etc/host.allow with
sendmail: ALL

Someone suggested doing a tcpdump while trying to telnet to the box on port 25. Here is the output of that:

[root@cornerstone etc]# tcpdump host cornerstone and titan
tcpdump: listening on eth0
11:29:50.870754 titan.42321 > cornerstone.smtp: S 886781666:886781666(0) win 5840 <mss 1460,sackOK,timestamp 41904123 0,nop,wscale 0> (DF) [tos 0x10]
11:29:50.870856 arp who-has titan. tell cornerstone
11:29:50.870984 arp reply titan. is-at 0:7:e9:d:5f:66
11:29:50.870999 cornerstone.tamu.edu > titan: icmp: host cornerstone unreachable - admin prohibited [tos 0xd0]
Go to the top of the page
 
+Quote Post
CNBarnes
post Jun 7 2004, 01:49 PM
Post #7


Whats this Lie-nix Thing?
*

Group: Members
Posts: 5
Joined: 4-June 04
Member No.: 3,092



Ok, I just found my own answer. The file I needed to modify was /etc/sysconfig/iptables. I had to add the smtp, imap, & pop ports to those that are open.

As soon as I did that, everything worked.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 24th October 2017 - 01:05 AM