Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL3 Errror with outlook.com #165

Closed
dcbartlett opened this issue Jun 18, 2013 · 11 comments
Closed

SSL3 Errror with outlook.com #165

dcbartlett opened this issue Jun 18, 2013 · 11 comments

Comments

@dcbartlett
Copy link

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: '********'
    }
});
@andris9
Copy link
Member

andris9 commented Jun 18, 2013

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

@dcbartlett
Copy link
Author

node: v0.10.11
nodemailer: 0.4.4

@andris9
Copy link
Member

andris9 commented Jul 10, 2013

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'
    }
}

@andris9 andris9 closed this as completed Jul 10, 2013
@ucb-silicon
Copy link

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
...

@avinagrawal
Copy link

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

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

@sagar03d
Copy link

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

@AbhimanyuVashisht
Copy link

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

@nimatrazmjo
Copy link

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' }

@charlottetan
Copy link

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

@mohaimin95
Copy link

mohaimin95 commented May 8, 2020

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.,

@mscbpi
Copy link

mscbpi commented Jan 22, 2021

live.com a bit different from office365 enterprise and we get same error. 587 is not available on MX record for direct send. It used TLS on 25.

The smtp relay host with auth (user licence needed) would be smtp.office365.com. We don't use this option.

The other option is direct send to MX server (another DNS record) and a connector to allow relay based on IP of the sender.

This is what we chose. It used to work. It uses port 25 only.

image

https://docs.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-microsoft-365-or-office-365

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants