telnet on local LAN question (progress?)

Paul Allen Newell pnewell at cs.cmu.edu
Mon Aug 22 01:41:29 UTC 2011


I dug around online and found info regarding mail, port 25, and port 
587. Got a little better idea what all this is about and I decided to 
try some permuations

Though I didn't get any mail sent, I was able to get a failure message 
back which is more info than I've seen before.

In sendmail.mc, I did the following:
+++
dnl #DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl
+++

After making and restarting, I fired off an email from chowder 
(192.168.2.11) to chalupa (192.168.2.10) and then got the following when 
running mail (see below).

Also, telnet chalupa works on port 25 and 587.

The netstat command shows listening on 0.0.0.0:25 and 0.0.0.0:587

/etc/mail/access has 192.168.2 added (and I did try 192.168.2.0/24 in 
case it wanted that form).

It appears that mails to self gets blocked if I don't have both the smtp 
and submission line active (???).

I have iptables stopped and, given that I've gotten email that the 
Linksys router doesn't have any blocking control on LAN communications, 
only internet, I've got my router back to normal firewall configuration.

What I am hoping is that someone will spot what the blocking issue is 
from the returned email (#2). I've done some looking online but am 
currently drawing a blank.

Thanks again for everyone's help,
Paul

ps: the original message in the email was a line of "+++", a cut-n-paste 
of the mail command, and a closing "+++"

+++ running mail +++
[paul at chowder ~]$ mail
Heirloom Mail version 12.5 7/5/10.  Type ? for help.
"/var/spool/mail/paul": 2 messages
 >  1 Paul Allen Newell     Sun Aug 21 18:17  24/897   "chowder to 
chalupa as"
     2 Mail Delivery Subsys  Sun Aug 21 18:17  73/2566  "Returned mail: 
see tr"
& 1
Message  1:
 From paul at localhost.localdomain  Sun Aug 21 18:17:33 2011
Return-Path: <paul at localhost.localdomain>
From: Paul Allen Newell <paul at localhost.localdomain>
Date: Sun, 21 Aug 2011 18:17:32 -0700
To: paul at chalupa.localdomain
Subject: chowder to chalupa as paul 21aug11 18:17
Cc: paul at localhost.localdomain
User-Agent: Heirloom mailx 12.5 7/5/10
Content-Type: text/plain; charset=us-ascii
Status: RO

+++
[paul at chowder ~]$ mail -s "chowder to chalupa as paul 21aug11 18:17" -c 
paul paul at chalupa
+++

& 2
Message  2:
 From MAILER-DAEMON at chowder.localdomain  Sun Aug 21 18:17:33 2011
Return-Path: <MAILER-DAEMON at chowder.localdomain>
Date: Sun, 21 Aug 2011 18:17:33 -0700
From: Mail Delivery Subsystem <MAILER-DAEMON at chowder.localdomain>
To: <paul at localhost.localdomain>
Content-Type: multipart/report; report-type=delivery-status;
     boundary="p7M1HXNR011003.1313975853/chowder.localdomain"
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)
Status: RO

Part 1:

The original message was received at Sun, 21 Aug 2011 18:17:32 -0700
from chowder [127.0.0.1]

    ----- The following addresses had permanent fatal errors -----
<paul at chalupa.localdomain>
     (reason: 530 5.7.0 Authentication required)

    ----- Transcript of session follows -----
... while talking to chalupa.localdomain.:
 >>> MAIL From:<paul at localhost.localdomain> SIZE=815
<<< 530 5.7.0 Authentication required
554 5.0.0 Service unavailable

Part 2:
Content-Type: message/delivery-status


Part 3:
Content-Type: message/rfc822

 From paul at localhost.localdomain Sun Aug 21 18:17:32 2011
Return-Path: <paul at localhost.localdomain>
From: Paul Allen Newell <paul at localhost.localdomain>
Date: Sun, 21 Aug 2011 18:17:32 -0700
To: paul at chalupa.localdomain
Subject: chowder to chalupa as paul 21aug11 18:17
Cc: paul at localhost.localdomain
User-Agent: Heirloom mailx 12.5 7/5/10
Content-Type: text/plain; charset=us-ascii

+++
[paul at chowder ~]$ mail -s "chowder to chalupa as paul 21aug11 18:17" -c 
paul paul at chalupa
+++
& q
Held 2 messages in /var/spool/mail/paul
[paul at chowder ~]$
+++ end +++



More information about the users mailing list