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 <gpro...@gmail.com> wrote:

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

Reply via email to