mail from the command line ??

Mikkel L. Ellertson mellertson at gmail.com
Sat Sep 14 22:01:31 UTC 2013


On 09/14/2013 04:57 PM, Dave Ihnat wrote:
> On Sat, Sep 14, 2013 at 04:42:29PM -0400, bruce wrote:
>> as a test, I have mailx (also have sendmail)
> Of course, you can always do it the way we used to--still do for some
> testing:
>
>     #telnet localhost 25
>     220 foo.bar.com ESMTP Sendmail 8.14.4/8.14.4/Debian-2ubuntu2; Mon 16 Sep
>     2013 16:00:28 -0500; (No UCE/UBE) logging access from:
>     localhost(OK)-localhost [127.0.0.1]
>     HELO foo.bar.com
>     250 foo.bar.com Hello localhost [127.0.0.1], pleased to meet you
>     MAIL From:krod at foo.bar.com
>     250 2.1.0 krod at foo.bar.com... Sender ok
>     RCPT To:joker at batman.com
>     250 2.1.5 joker at batman.com... Recipient ok
>     DATA
>     354 Enter mail, end with "." on a line by itself
>     Well, Batman, I see you and Joker are friends now.
>     .
>     250 2.0.0 r8ELmS57124111 Message accepted for delivery
>     quit
>     Connection closed by foreign host.
>     #
>
> In the above, the lines starting with codes are the responses from the MTA.
>
> Of course, there are some gotchas today.  It may not be on port 25.  You
> may not have 'telnet', or have access to it.  And if the connection
> requires authentication, there's more armwaving; for something like that,
> see:
>
>   http://www.ndchost.com/wiki/mail/test-smtp-auth-telnet
>
> (I can do the above from memory; I have to look up the AUTH sequence.)
>
> Cheers,
> --
> 	Dave "don't need no stinkin' MUA" Ihnat
> 	dihnat at dminet.com
I think he may want to use EHLO foo.bar.com instead of "HELO
foo.bar.com" to see the security options.

Mikkel
-- 
Do not meddle in the affairs of dragons, for thou art crunchy and
taste good with Ketchup!


More information about the users mailing list