Fwd: Example of sendmail with -H 'exec openssl s_client ...
William Bernhardt
wbernha at gmail.com
Sun Aug 30 22:02:43 UTC 2015
Hello,
I have been trying to find an example of using the sendmail applet in
busybox, for the following scenario:
./busybox sendmail -v wbernha at gmail.com -f wbernha at yahoo.com -S
smtp.gmail.com:587 -auxxxxx at gmail.com -apxxxxxx < busybox.txt
sendmail: recv:'220 smtp.gmail.com ESMTP n6sm8812015igv.17 - gsmtp'
sendmail: send:'EHLO RT-N56U'
sendmail: recv:'250-smtp.gmail.com at your service, [99.105.8.14]'
sendmail: recv:'250-SIZE 35882577'
sendmail: recv:'250-8BITMIME'
sendmail: recv:'250-STARTTLS'
sendmail: recv:'250-ENHANCEDSTATUSCODES'
sendmail: recv:'250-PIPELINING'
sendmail: recv:'250-CHUNKING'
sendmail: recv:'250 SMTPUTF8'
sendmail: send:'AUTH LOGIN'
sendmail: recv:'530 5.7.0 Must issue a STARTTLS command first.
n6sm8812015igv.17 - gsmtp'
sendmail: AUTH LOGIN failed
I think I need to use the -H option:
-H 'exec openssl s_client -quiet -tls1 -starttls smtp
-connect smtp.gmail.com:25' <email.txt
[4<username_and_passwd.txt | -auUSER
-apPASS]
But I don't know how to combine this with the options I already have
specified. Or how the authentication is specified for the opensl command.
Is there a complete example of using the 'exec openssl' command as a -H
option to the busybox sendmail applet?
Thanks very much.
Bill Bernhardt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20150830/1f486257/attachment.html>
More information about the busybox
mailing list