LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-01-2010, 08:48 AM   #1
eltraje
LQ Newbie
 
Registered: Jan 2010
Posts: 2

Rep: Reputation: 0
Unhappy Connection refused to port 25 and 587 but sendmail listening on those ports.


Hi, I am new to this forum, and new to Linux, I have been working with it for ten months and I am a big fan now.
I have recently installed a set of virtualized servers with XenServer 5.5 that have one purpose only and that is sending emails.
I have a central server whith Fedora 12 x86_64 that relays email to other servers ,that have minimal config, through a virtual interface created with Xen that works as a LAN.
I have 3 CentOS 5.4 servers working fine in this setup and now I am trying out TurnKey Linux Core, just because its a Linux that has nothing on it, and that way I can use less memory.
The problem is I cant seem to connect to port 25 or 587.
The machine has shorewall installed and I am logging all traffic through the local interface and it shows the telnet request getting there.
Doing a netstat shows sendmail listening on port 25 and 587.
I really dont understand what can be wrong.
Any help would be great.
Thanks in advance.

Short version:

ERROR:
[root@vm-laentidad1 ~]# telnet 192.168.100.53 25
Trying 192.168.100.53...
telnet: connect to address 192.168.100.53: Connection refused

Firewall output:
Shorewall:loc2all:ACCEPT:IN=eth2 OUT= MAC=xx:xx:xx:xx:xx:xx SRC=192.168.100.1 DST=192.168.100.53 LEN=60 TOS=0x10 PREC=0x00 TTL=64 ID=56116 DF PROTO=TCP SPT=54963 DPT=25 WINDOW=5840 RES=0x00 SYN URGP=0

Netstat -nlp output:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:12320 0.0.0.0:* LISTEN 4302/shellinaboxd
tcp 0 0 127.0.0.1:587 0.0.0.0:* LISTEN 4434/sendmail: MTA:
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 23620/perl
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 4434/sendmail: MTA:
tcp6 0 0 :::22 :::* LISTEN 4232/sshd
udp 0 0 0.0.0.0:12321 0.0.0.0:* 23620/perl
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix 2 [ ACC ] STREAM LISTENING 11646 4434/sendmail: MTA: /var/run/sendmail/mta/smcontrol
 
Old 01-01-2010, 10:36 AM   #2
tungvs
Member
 
Registered: May 2008
Distribution: Centos; Ubuntu; Fedora
Posts: 98

Rep: Reputation: 15
Sendmail is listening on 127.0.0.1 interface, not 192.168.100.53. So try to reconfigure sendmail to listen on the correct interface.
 
Old 01-01-2010, 05:05 PM   #3
eltraje
LQ Newbie
 
Registered: Jan 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Thumbs up Solved

Thanks, that solved it.
 
  


Reply

Tags
sendmail, telnet


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
Sendmail not listening on any ports SorC Linux - Server 10 11-09-2011 10:10 AM
smtp error on sendmail but not on squirrelmail after opening port 587 bigspot Linux - Server 4 10-18-2009 06:49 PM
Fetchmail and sendmail refused connection to localhost port 25m red hat 5 infrasup Linux - Software 1 09-25-2008 01:07 AM
Sendmail and changing it's default listening port... darkarcon2015 Slackware 7 01-20-2005 11:17 PM
sendmail listening on port 25 dskny Linux - Software 14 08-12-2003 06:52 PM


All times are GMT -5. The time now is 03:58 AM.

Main Menu
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