MUA / SMTP client / script to send email via a mail relay server

sunhux G sunhux at gmail.com
Tue Nov 29 03:09:26 UTC 2011


Need to clarify on Daniel's script :
Understand Daniel has tested it but I got an issue with RCPT TO:


I login directly to the Postfix server & test it:
# telnet localhost 25
220 smtp.yy.zz ESMTP
helo me
250 servernm.yy.zz
MAIL FROM: <fromsms1 at yy.zz>
250 Ok
RCPT TO: <mail at yy.zz>
550 <mail at yy.zz>: Recipient address rejected: User unknown in relay
recipient table
RCPT TO: <postfix at yy.zz>
550 <postfix at 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?


On Tue, Nov 29, 2011 at 12:24 AM, Daniel Carrillo
<daniel.carrillo at gmail.com> wrote:
>
> {
>    echo 'helo me'
>    echo 'MAIL FROM:<you at yourdomain.com>'
>    echo 'RCPT TO: <someone at theirdomain.com>'
>    echo 'DATA'
>    echo -e 'To:someone at 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 mail.20minutos.es 25
>




More information about the redhat-list mailing list