Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-01-2010, 08:48 AM   #1
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:

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

Firewall output:
Shorewall:loc2all:ACCEPT:IN=eth2 OUT= MAC=xx:xx:xx:xx:xx:xx SRC= DST= 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* LISTEN 4302/shellinaboxd
tcp 0 0* LISTEN 4434/sendmail: MTA:
tcp 0 0* LISTEN 23620/perl
tcp 0 0* LISTEN 4434/sendmail: MTA:
tcp6 0 0 :::22 :::* LISTEN 4232/sshd
udp 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
Registered: May 2008
Distribution: Centos; Ubuntu; Fedora
Posts: 98

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

Original Poster
Rep: Reputation: 0
Thumbs up Solved

Thanks, that solved it.


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:29 PM.

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