Re: [Hampshire] Connection refused even though Sendmail is r…

Top Page

Reply to this message
Author: Chris Dennis
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Connection refused even though Sendmail is running
On 19/01/11 11:27, Victor Churchill wrote:
> Hi,
>
> I have a pretty clean (*) install of Centos on a server in my home
> network at the mo. It is destined to go out to NewNet eventually but
> that's another story.
>
> It needs to be able to receive and process emails - a user account on
> this machine has some procmail scripts that will handle this.
>
> Sendmail is in the init.d startup sequence, and is running and listening
> on port 25.
>
> [root@phoenix qg]# /usr/sbin/lsof -i :25
> COMMAND�� PID USER�� FD�� TYPE DEVICE SIZE NODE NAME
> sendmail 3492 root��� 4u� IPv4� 11969������ TCP phoenix:smtp (LISTEN)
> [root@phoenix qg]#
>
> And responds locally:
>
> [qg@phoenix 10:52 ~]$ telnet localhost 25
> Trying 127.0.0.1...
> Connected to localhost.localdomain (127.0.0.1).
> Escape character is '^]'.
> 220 localhost.localdomain ESMTP Sendmail 8.13.8/8.13.8; Wed, 19 Jan 2011
> 10:53:10 GMT
> ehlo localhost
> 250-localhost.localdomain Hello phoenix [127.0.0.1], pleased to meet you
>
> But if I try to chat to port 25 from a neighbouring machine I get refused:
>
> victor@ss07:~$ telnet phoenix 25
> Trying 192.168.11.199...
> telnet: Unable to connect to remote host: Connection refused
>
> I haven't done anything explicit to do with firewalling on the phoenix
> server.
> I can see other services the server is running such as ssh and http from
> the neighbouring machines. Just not the SMTP port.


I don't know sendmail, but exim4 (another email server) needs to be told
to accept connections on the machine's real IP address as well as 127.0.0.1.

So as a wild guess, I'd say that you need to configure sendmail to
accept connections on IP addresses other than 127.0.0.1.

cheers

Chris


-- 
Chris Dennis                                  cgdennis@???
Fordingbridge, Hampshire, UK