I am trying to send email through OpenSSL as below :
Client > openssl s_client -crlf -connect smtp.mail.yahoo.com:465
SERVER > 220 smtp.mail.yahoo.com ESMTP ready
Client > HELO localhost
SERVER > 250 smtp.mail.yahoo.com
Client > auth login
SERVER > 334 VXNlcm5hbWU6
Client > aC5rYW1yYXZh
SERVER > 334 UGFzc3dvcmQ6
Client > bXlQYXNz // It's not my real password :)
SERVER > 235 2.0.0 OK
Client > MAIL FROM: <h.kamix@yahoo.com>
SERVER > 250 OK , completed
Client > rcpt to: <h.kamix1@gmail.com>
SERVER > 250 OK , completed
Client > data
SERVER > 354 Start Mail. End with CRLF.CRLF
Client > subject: Test title
Client > Hello this is a test email.
Client > .
Client >
SERVER > 250 OK , completed
Client > quit
SERVER > 221 Service Closing transmission
SERVER > closed
Everything looks fine, but it doesn't send any email and gets me Service Closing transmission error at the last step!
I think it's clear enough.
Please tell me what am I missing here?
gmail.comis notorious for just having mail disappear into the ether for unspecified reasons. Have you tried delivering email to another yahoo account that way, or indeed to your own? That would be a better test for whether the issue is in the sending or the receipt. – MadHatter May 13 '14 at 16:25221 Service Closing transmissionis the correct response toQUIT. As to why the email isn't going anywhere, I'm guessing since your example email is fairly invalid (body not separated from headers by a blank line, noFrom:header, noTo:header) it's getting marked as spam. – DerfK May 13 '14 at 16:31