Just to add, I'm not allowed to start up sendmail (as it's hardened
for security reason), so editing sendmail.cf may not be an option.

So I certainly need a script/tool to do this forwarding to the relay
/postfix server


Roger

On Tue, Nov 29, 2011 at 11:15 AM, Roger Goh <[email protected]> wrote:

>
> 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
>

Reply via email to