Closed DeadNumbers closed 8 years ago
It seems like you're typing or pasting the \r and \n directly into your terminal, which means they are being interpreted literally instead of being interpreted as control characters. If you want to use Netcat, try putting the entire exchange in quotes on a single line, then pipe it to nc like this:
$ msg="EHLO hello server\nMAIL FROM:<admin@google.com>\nRCPT TO:<admin@nasa.gov>\nDATA\nFrom:admin@google.com\r\nTo:admin@nasa.gov\r\nSubject:Test\r\n\r\n<h1>Test</h1>\r\n.\r\n";
$ echo -ne $msg | nc localhost 2525
@mhale thanks.
How to send DATA end? https://github.com/mhale/smtpd/blob/master/smtpd.go#L252
but nothing.
My locale