Tls ? #22

Closed
joaomachado opened this Issue May 24, 2011 · 3 comments

2 participants

@joaomachado

Can send using TLS

SMTP Configured
Sending Mail

Nodemailer, 0.1.13; +http://www.nodemailer.org: 1

CONNECTION (1): 220 SAPO.pt PTMailServer ESMTP SPF1
Connection established! (1)
SEND (1):
└──"EHLO sl.pt\r\n"
RECEIVE (1):
└──"250-SAPO.pt PTMailServer\r\n250-AUTH LOGIN PLAIN\r\n250-AUTH=LOGIN PLAIN\r\n250-PIPELINING\r\n250-STARTTLS\r\n250-SIZE 0\r\n250 8BITMIME\r\n" ""
Routing Data (1)
STARTTLS: (1)
SEND (1):
└──"STARTTLS\r\n"
RECEIVE (1):
└──"220 ready for tls\r\n" ""
Routing Data (1)
RECEIVE (1):
└──"\u0016\u0003..(truncated).\u0000" ""

Uncaught Exception TypeError: Cannot call method 'verifyError' of undefined
at SecurePair. (/home/jpaulo/Desktop/testes/ptmailAlert/node_modules/nodemailer/lib/starttls.js:24:37)
at SecurePair.emit (events.js:61:17)
at SecurePair.maybeInitFinished (tls.js:598:10)
at CleartextStream._push (tls.js:269:17)
at SecurePair.cycle (tls.js:574:20)
at EncryptedStream.write (tls.js:96:13)
at Socket.ondata (stream.js:36:26)
at Socket.emit (events.js:81:20)
at Socket._onReadable (net.js:678:14)
at IOWatcher.onReadable as callback

@andris9 andris9 pushed a commit that closed this issue May 24, 2011
andris9 Fixes #22 with STARTTLS _ssl object not set 664e050
@andris9 andris9 closed this in 664e050 May 24, 2011
@andris9
nodemailer member

Hi, I tried the patched version against SAPO.pt SMTP server and it seems to work now.

@joaomachado

Yes, its great.
Thanks.

I don't if is a bug, but without "use_authentication" : true
Infinite loop occurs
CONNECTION (1): 220 SAPO.pt PTMailServer ESMTP SPF1
Connection established! (1)
SEND (1):
└──"EHLO sl.pt\r\n"
RECEIVE (1):
└──"250-SAPO.pt PTMailServer\r\n250-AUTH LOGIN PLAIN\r\n250-AUTH=LOGIN PLAIN\r\n250-PIPELINING\r\n250-STARTTLS\r\n250-SIZE 0\r\n250 8BITMIME\r\n" ""
Routing Data (1)
Mail.emit { '0': 'connection_stable' }
SEND (1):
└──"EHLO sl.pt\r\n"
RECEIVE (1):
└──"250-SAPO.pt PTMailServer\r\n250-AUTH LOGIN PLAIN\r\n250-AUTH=LOGIN PLAIN\r\n250-PIPELINING\r\n250-STARTTLS\r\n250-SIZE 0\r\n250 8BITMIME\r\n" ""
Routing Data (1)
Mail.emit { '0': 'connection_stable' }
SEND (1):
└──"EHLO sl.pt\r\n"
RECEIVE (1):
└──"250-SAPO.pt PTMailServer\r\n250-AUTH LOGIN PLAIN\r\n250-AUTH=LOGIN PLAIN\r\n250-PIPELINING\r\n250-STARTTLS\r\n250-SIZE 0\r\n250 8BITMIME\r\n" ""
Routing Data (1)
Mail.emit { '0': 'connection_stable' }
(...)

@andris9 andris9 reopened this May 24, 2011
@andris9
nodemailer member

The loop is definitely a bug, I'll look into it a bit later

@andris9 andris9 pushed a commit that closed this issue May 24, 2011
andris9 Fixes #22 eternal loop with no authentication 6b59464
@andris9 andris9 closed this in 6b59464 May 24, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment