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:<y...@yourdomain.com>' echo 'RCPT TO: <some...@theirdomain.com>' echo 'DATA' echo -e 'To:some...@theirdomain.com\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: <froms...@yy.zz> 250 Ok RCPT TO: <m...@yy.zz> 550 <m...@yy.zz>: Recipient address rejected: User unknown in relay recipient table RCPT TO: <post...@yy.zz> 550 <post...@yy.zz>: 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