mailx & "telnet localhost 25" syntax

sachin sachin.murudkar at netcore.co.in
Sat Feb 19 06:09:37 UTC 2011


Hi 

you can send the mail via telnet with the below steps... 

[root at sachin tmp]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 sachin.xyz.com ESMTP Sendmail 8.14.4/8.14.4; Sat,
ehlo A
250-sachin.xyz.com Hello localhost.localdomain [127.0
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5
250-DELIVERBY
250 HELP
mail from: xyz at xyz.com
250 2.1.0 xyz at xyz.com... Sender ok
rcpt to: abc at abc.com
250 2.1.5 abc at abc.com... Recipient ok
data
354 Enter mail, end with "." on a line by itself
subject: test 
.
250 2.0.0 p1J63Mv6025894 Message accepted for delivery

Regards 

Sachin 


On Thu, 2011-02-17 at 22:14 +0800, sunhux G wrote:

> I recall seeing somewhere but I've lost the commands / syntax:
> 
> I'm on a Linux box & would like to send a mail to another Linux box
> using IP address (ie in the format
> remote_recipient_id at IP_address_of_remote_box).
> 
> What's the full mailx command to do this (kindly include examples) ?
> 
> 
> Also, I recall seeing someone issuing the following to send emails:
> telnet localhost 25
> HELO ...
> .... TO:<...>
> ........
> 
> What's the exact syntax/sequence of commands?
> 
> 
> Thanks
> U
> 





More information about the redhat-list mailing list