
March 10, 2025
2:50 a.m.
Mark Sapiro wrote:
The issue is you are not using nc correctly. When you do
$ nc localhost 8024 < /tmp/pbTw1oqmV1rZtHXV707Jcov264hr
you are telling nc to take commands from the file /tmp/pbTw1oqmV1rZtHXV707Jcov264hr. You need to give it a command to send the file.
Actually, what I said is not correct. The issue is you are just sending the data rather than engaging in an LMTP dialog.
You need to send LMTP commands so you might prepend the message with
LHLO mymaillist.org
MAIL FROM: <sender@example.com>
RCPT TO: <all-request@mymaillist.org>
DATA
and append to the message
.
QUIT
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan