Testing Mail Servers with OpenSSL

commandline session

$ openssl s_client -connect pop.mail.yahoo.co.in:995
CONNECTED(00000003)
depth=1 C = US, O = DigiCert Inc, OU = www.digicert.com, CN = DigiCert High Assurance CA-3
verify error:num=20:unable to get local issuer certificate
verify return:0
---
Certificate chain
 0 s:/C=US/ST=CA/L=Sunnyvale/O=Yahoo! Inc./CN=legacy.pop.mail.yahoo.com
   i:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3
 1 s:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3
   i:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance EV Root CA
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIISjCCBzKgAwIBAgIQClDT0u/4pW4O2yOSzos4yzANBgkqhkiG9w0BAQUFADBm
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
d3cuZGlnaWNlcnQuY29tMSUwIwYDVQQDExxEaWdpQ2VydCBIaWdoIEFzc3VyYW5j
ZSBDQS0zMB4XDTEzMDkyNjAwMDAwMFoXDTE1MTEyNDEyMDAwMFowaDELMAkGA1UE
BhMCVVMxCzAJBgNVBAgTAkNBMRIwEAYDVQQHEwlTdW5ueXZhbGUxFDASBgNVBAoM
C1lhaG9vISBJbmMuMSIwIAYDVQQDExlsZWdhY3kucG9wLm1haWwueWFob28uY29t
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoqy61Hr/vHKuiQXK+X9T
ExkaqtnlatpB0/MihN1wagUVK/oVKzfXUvEWA/EP/NudWRf7ARv8tJ7i8Zts7pHo
prEiGQnmSZq2d/bIPTbfgaczzIJJomoRAuesI8ggR4RbAG461b4W58ETyYbHNR32
sqLueUiU3hIeXP8Hd3QVc/LtTPjZHTpP/KxwXrsTLIELGfcK5t64tfLRZSNiV/3p
n3IxElpijAIugena7svG3IyyXlQ+6U0VgG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nEh
HP1MZt3X4XXJGRYKe+0=
-----END CERTIFICATE-----
subject=/C=US/ST=CA/L=Sunnyvale/O=Yahoo! Inc./CN=legacy.pop.mail.yahoo.com
issuer=/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3
---
No client certificate CA names sent
---
SSL handshake has read 4061 bytes and written 631 bytes
---
New, TLSv1/SSLv3, Cipher is RC4-SHA
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
SSL-Session:
    Protocol  : TLSv1
    Cipher    : RC4-SHA
    Session-ID: 62C41F5F804C91D86B8E99A93DE6EA88A74C802F4EE7D1E2EA31B90B7DF82DB6
    Session-ID-ctx: 
    Master-Key: 93D29DEE014AE52BEC86DA6344439F1BB254D89C017E8E758CB34E3137C2D1F4432D70704E3EA7DFDF59B2662D7D1CE7
    Key-Arg   : None
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    TLS session ticket:
    0000 - e0 71 94 74 df a0 d9 bb-1c 7d 55 55 ea ad 72 d6   .q.t.....}UU..r.
    0010 - 45 1f 47 de aa f2 26 9e-3f c3 fc c3 be 59 61 a7   E.G...&.?....Ya.
    0020 - fb 65 b3 9a 60 fe 8f e3-cf dc 5f ea 9c c5 59 c4   .e..`....._...Y.
    0030 - be a8 54 0d ab 1a ff 0a-4f be d4 6d 57 d1 5e 4c   ..T.....O..mW.^L
    0040 - 8b c0 48 5a 64 4f 98 2d-c3 d6 05 4f fb 2e 5d c1   ..HZdO.-...O..].
    0050 - 57 ca 7d 85 de fb 15 ec-b5 c7 24 38 fd 09 01 24   W.}.......$8...$
    0060 - 33 e6 33 67 b5 66 22 04-4a 24 ad 83 61 fc b6 d5   3.3g.f".J$..a...
    0070 - 98 ea 46 d5 a2 2b c4 d3-3d d9 6d 97 37 f4 43 9b   ..F..+..=.m.7.C.
    0080 - 3e b0 22 33 e9 3c b4 71-bb c6 7f 96 3b 43 a2 b9   >."3.<.q....;C..
    0090 - 54 c3 06 45 c4 5d 2b b2-4b 4a 64 41 51 ce 41 53   T..E.]+.KJdAQ.AS

    Start Time: 1395243263
    Timeout   : 300 (sec)
    Verify return code: 20 (unable to get local issuer certificate)
---
+OK hello from popgate-0.8.0.504347 pop114.plus.mail.gq1.yahoo.com