Re: mailx & "telnet localhost 25" syntax

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi 

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

[root@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@xxxxxxx
250 2.1.0 xyz@xxxxxxxxxx Sender ok
rcpt to: abc@xxxxxxx
250 2.1.5 abc@xxxxxxxxxx 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@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
> 


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux