telnet on local LAN question

Tim ignored_mailbox at yahoo.com.au
Sat Aug 20 08:42:08 UTC 2011


On Fri, 2011-08-19 at 22:14 -0700, Paul Allen Newell wrote:
> I comment out the 127.0.0.1 line in sendmail.mc as suggested, did a 
> service sendmail restart

It's *ages* since I set up sendmail, but don't you need to have a smtp
line in there, rather than comment out the local loopback one?  If you
leave no configuration, wouldn't nothing be listening?

This is from my old server:

dnl # The following causes sendmail to only listen on the IPv4 loopback address
dnl # 127.0.0.1 and not on any other network devices. Remove the loopback
dnl # address restriction to accept email from the internet or intranet.
dnl #
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=192.168.1.2, Name=MTA')dnl

I simply bodged on a second line, for my LAN IP address.  Which I
thought to be a bit more restrictive than having it open-slather (at the
time I was on dial-up, and server was directly connected to the ISP).

I seem to recall the advice (read later, never tested), was to remove
the Addr= portion, so it listened to all addresses.  The inline comments
suggest the same.

e.g. DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl


> I did a mail from one machine to another and got a "No route to host".
>  
> I then did a service iptables stop and tried again ... got a
> "Connection refused"

The two above conditions does sound like you still have a firewalling
issue (different response codes with and without iptables in the way).

I don't recall much customising needed for sendmail.mc (the adding of my
domain name in the obvious places, smarthost to send out through my ISP,
listening addresses, are about the only things I can think of, and see,
in the old config file).

My access file has the local domain names and subnets added, with the
RELAY command.

localhost.localdomain           RELAY
localhost                       RELAY
127.0.0.1                       RELAY
lan.example.com                 RELAY
192.168.1                       RELAY

The local-host-names file has a list of all the domain names that the
server responds to:
lan.example.com
mail.lan.example.com

And so on, and so forth, listing all the different mail-related domain
names I'd used while setting up the LAN.

I never went exploring to see if that was overkill.  Again, just trying
the obvious.

I'd have suggested viewing sendmail.org, but it seems like the good
information has been removed, or buried where I can't see it.


-- 
[tim at localhost ~]$ uname -r
2.6.27.25-78.2.56.fc9.i686

Don't send private replies to my address, the mailbox is ignored.  I
read messages from the public lists.





More information about the users mailing list