Skip to content

Instantly share code, notes, and snippets.

@hj91
Created December 4, 2012 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hj91/4202475 to your computer and use it in GitHub Desktop.
Save hj91/4202475 to your computer and use it in GitHub Desktop.
How to send mail using exim and command line prompt
user@localhost:~$ telnet localhost 25
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 localhost ESMTP Postfix (Ubuntu)
mail from:root@localhost
250 2.1.0 Ok
rcpt to:harshad@localhost
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
hello, wussap?
.
250 2.0.0 Ok: queued as AB5061ACA624
quit
221 2.0.0 Bye
yeah, this is how real men send mails!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment