Image

Imageaguynamedrick wrote in Imagelinux

Trouble setting up a mail server

I'm trying to set up a mail sever on my desktop, so I have something to test an prototype board with. I just want something to receive and let me read plain text messages from busybox's sendmail.

I installed a the esmpt mail server on Ubuntu 10.4. I can connect to the mail sever with telnet using lo, but the connection is reused when I use eth0. This is both from my desktop and the prototype. The server responds on lo, so it's running. The firewall is wide open. Details behind the cut.


$ telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 sixcorners ESMTP Sendmail 8.14.3/8.14.3/Debian-9.1ubuntu1; Wed, 7 Jul 2010 14:26:48 -0700; (No UCE/UBE) logging access from: localhost(OK)-localhost [127.0.0.1]

HELO 127.0.0.1
250 sixcorners Hello localhost [127.0.0.1], pleased to meet you
QUIT
221 2.0.0 sixcorners closing connection
Connection closed by foreign host.
$ telnet 192.168.0.2 25
Trying 192.168.0.2...

telnet: Unable to connect to remote host: Connection refused
$ ifconfig
eth0 inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0

$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)

target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
$