Sending Mail via Telnet
February 11th, 2004
While I was configuring postfix to act as a backup MX for Steve I needed a way to test it was configured correctly. Here is a quick cheat sheet how to send mail via a manual telnet session with a mail server:
- Telnet to hostname on port 25.
Server should respond with a 220 and identify itself. - HELO your_domain_name
Server should respond with 250 - MAIL FROM:you@hostname
Server should respond with 250 - RCPT TO:them@wherever
Server should respond with 250 - DATA
Servers tells you to send data then CRLF period CRLF at the end. - Type the message then CRLF period CRLF (basically type a period on a line by itself and hit ENTER)
Server responds with a 250 - QUIT
Server responds with the signoff message
Recent Comments