четверг, 14 июля 2016 г.

Отправить письмо через telnet

$ telnet 192.168.11.68 25
Trying 192.168.11.68...
Connected to 192.168.11.68.
Escape character is '^]'.
220 internal.example.com ESMTP Postfix
helo example.com
250 internal.example.com
mail from:<sysadmin@example.com>
250 2.1.0 Ok
rcpt to:<sysadmin@example.com>
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
Subject:ALARM!
Device is unreachable              
.
250 2.0.0 Ok: queued as 023B9CDAF
quit
221 2.0.0 Bye