Thank you for this answer.  In both the inject case and the netcat case I must know the recipient.  My complex setup looses that metadata; leaving me with only the message.

I guess I will be parsing the message to find that recipient.


Thanks again


On 2025-03-09 10:50 p.m., Mark Sapiro wrote:
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: <[email protected]>
RCPT TO: <[email protected]>
DATA
```
and append to the message
```
.
QUIT
```

--
Mark Sapiro <[email protected]>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
_______________________________________________
Mailman-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at: 
https://lists.mailman3.org/archives/list/[email protected]/message/U5UCOTY6JRV5RARGVVE24UVCO5RPOSL7/

This message sent to [email protected]

_______________________________________________
Mailman-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at: 
https://lists.mailman3.org/archives/list/[email protected]/message/UJYRVFJGOL7FJYX32R5EGNOKDV6YM7S6/

This message sent to [email protected]

Reply via email to