Nodemailer: SSL3 Errror with outlook.com

Created on 18 Jun 2013  路  10Comments  路  Source: nodemailer/nodemailer

Hi I was setting up nodemailer to work with outlook.com and got the following error.

Error : 3074565888:error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number:../deps/openssl/openssl/ssl/s3_pkt.c:337: 

This is the config i was using.

var smtpTransport = nodemailer.createTransport('SMTP', {
    host: 'smtp.live.com', // hostname
    secureConnection: false, // use SSL
    port: 587, // port for secure SMTP
    auth: {
        user: '********@outlook.com',
        pass: '********'
    }
});

Most helpful comment

setting the port from 587 to 465 solved my problem.
Error while port was 587:
{ [Error: 140525118728000:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:252: ] code: 'ECONNECTION', command: 'CONN' }
After changed the port to 465:
Email sent: 250 Requested mail action okay, completed: id=0MC4m6-1gvUQI3jdI-008qAi

All 10 comments

Hi, which version of Nodemailer and node are you using? This could be duplicate of https://github.com/andris9/Nodemailer/issues/155

node: v0.10.11
nodemailer: 0.4.4

To get Hotmail running you should either not define the host and port by yourself but use a service option

{
    service: "hotmail",
    auth: {
        user: '********@outlook.com',
        pass: '********'
    }
}

Or alternatively add an addtional tls option

{
    host: 'smtp.live.com', // hostname
    secureConnection: false, // use SSL
    port: 587, // port for secure SMTP
    auth: {
        user: '********@outlook.com',
        pass: '********'
    },
    tls:{
        ciphers:'SSLv3'
    }
}

I am having the same issue. I am connecting to a private email server. Here is my configuration:

var smtpTransport = nodemailer.createTransport("SMTP", {
    host: "***.***.***.***",
    secureConnection: true,
    port: 465,
    auth: {
            user: "****",
            pass: "****"
    },
    tls: {
            ciphers:'SSLv3'
    }
});

I receive the same error as the OP:

{ [Error: 140735294948112:error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number:../deps/openssl/openssl/ssl/s3_pkt.c:337:] stage: 'auth' }

I can successfully connect to the server via openssl:

openssl s_client -crlf -connect ***.***.***.***:465

When I connect this way, the server responds with:

...
New, TLSv1/SSLv3, Cipher is DHE-RSA-AES256-GCM-SHA384
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
SSL-Session:
    Protocol  : TLSv1.2
    Cipher    : DHE-RSA-AES256-GCM-SHA384
...

@andris9 What does the tls: { ciphers:'SSLv3' } do?

I am trying to understand the reason behind adding the tls option

setting the port from 587 to 465 solved my problem.
Error while port was 587:
{ [Error: 140525118728000:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:252: ] code: 'ECONNECTION', command: 'CONN' }
After changed the port to 465:
Email sent: 250 Requested mail action okay, completed: id=0MC4m6-1gvUQI3jdI-008qAi

Please help me with this error
{ Error: 140456745305920:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:252:
code: 'ECONNECTION', command: 'CONN' }
while trying to use outlook

Guys I have the same error

2019-04-20 10:52 +04:30: { [Error: 140529796826944:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:252:
019-04-20 10:52 +04:30: ] code: 'ECONNECTION', command: 'CONN' }

ran into this issue, discovered i was using an old version of nodemailer. updating to the latest version and removing a bunch of other outdated code fixed it for me

add secure: (String(config.port)==="465") to the options.

config.port should be the same port that you are trying to connect. use 587 for Outlook, Hotmail etc.,

Was this page helpful?
0 / 5 - 0 ratings