Yes, understand the syntax/example mutt & nail that Jeroen &
Noel provided but sendmail.cf will need to be configured.
I got the following script which someone has tested working
on his postfix but I have a problem with RCPT TO:
(need someone to tell me how to obtain a valid address for RCPT TO)
Script:
=====
{
echo 'helo me'
echo 'MAIL FROM:<[email protected]>'
echo 'RCPT TO: <[email protected]>'
echo 'DATA'
echo -e 'To:[email protected]\nMIME-Version: 1.0
(mime-construct 1.9)\nContent-Type:
application/octet-stream\nContent-Transfer-Encoding: base64\n\n'
cat myattachment.bin | openssl base64
echo '.'
} | nc smtp.mydomain.org 25
# telnet postfix_server 25
220 smtp.yy.zz ESMTP
helo me
250 servernm.yy.zz
MAIL FROM: <[email protected]>
250 Ok
RCPT TO: <[email protected]>
550 <[email protected]>: Recipient address rejected: User unknown in relay
recipient table
RCPT TO: <[email protected]>
550 <[email protected]>: Recipient address rejected: User unknown in relay
recipient table
DATA
554 Error: no valid recipients
How do I obtain a valid RCPT TO: address?
TIA
Roger