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 · 5 comments

Comments

Projects
None yet
4 participants
@dcbartlett

dcbartlett commented Jun 18, 2013

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

This comment has been minimized.

Member

andris9 commented Jun 18, 2013

Hi, which version of Nodemailer and node are you using? This could be duplicate of #155

@dcbartlett

This comment has been minimized.

dcbartlett commented Jun 18, 2013

node: v0.10.11
nodemailer: 0.4.4

@andris9

This comment has been minimized.

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 Jul 10, 2013

@ghost

This comment has been minimized.

ghost commented Dec 22, 2013

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

This comment has been minimized.

avinagrawal commented May 24, 2018

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment