telnet localhost 25 HELO sending-host MAIL FROM: a@a.com RCPT TO: b@b.com DATA (enter one blank line after DATA) Subject: test To: to-user From: from-user (enter one blank line after From:) test text for email . (enter a single period by itself on the last line) QUIT
简易认证模式,服务端也需要改造
1 2 3 4 5
telnet localhost 25 HELO sending-host AUTH PLAIN (Base64-encoded ID/password) MAIL FROM: a@a.com RCPT TO: b@b.com