2

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?

1 Answers1

2

You've tested sending email to yahoo the same way, and that gets through.

All the evidence, then, is that sending this way works fine. What is much more likely is that google is receiving the mail you send this way, but simply not putting it in either the recipient's INBOX or spam folder. Google are fairly notorious for just having emails disappear into the ether.

Sadly, without access to the mail logs on either end, you have no way of telling what's actually happening. This is one of many reasons why outsourced email isn't a very good idea, despite the way modern businesses are in love with it.

The collected wisdom of ServerFault on the subject of how not to have your emails eaten by google can be found in the answers to this question; we can't say more than that on the subject, I'm afraid.

MadHatter
  • 81,580