Length Power
2017-10-08 01:54:58 UTC
Email can be sent with command.
echo "test"|mail -s "test" ***@yahoo.com
Now to test the postfix with telnet command.
telnet localhost smtp
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 localhost.localdomain ESMTP Postfix
ehlo localhost
250-localhost.localdomain
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
MAIL FROM: <***@localhost.localdomain>
250 2.1.0 Ok
RCPT TO: <***@yahoo.com>
454 4.7.1 <***@yahoo.com>: Relay access denied
Why telnet can't sned email?
echo "test"|mail -s "test" ***@yahoo.com
Now to test the postfix with telnet command.
telnet localhost smtp
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 localhost.localdomain ESMTP Postfix
ehlo localhost
250-localhost.localdomain
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
MAIL FROM: <***@localhost.localdomain>
250 2.1.0 Ok
RCPT TO: <***@yahoo.com>
454 4.7.1 <***@yahoo.com>: Relay access denied
Why telnet can't sned email?