-   Linux - Newbie (
-   -   Connection refused to port 25 and 587 but sendmail listening on those ports. (

eltraje 01-01-2010 08:48 AM

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

tungvs 01-01-2010 10:36 AM

Sendmail is listening on interface, not So try to reconfigure sendmail to listen on the correct interface.

eltraje 01-01-2010 05:05 PM

Thanks, that solved it.

All times are GMT -5. The time now is 01:02 PM.