AuthenticationFailedException
843834Dec 28 2009 — edited Dec 30 2009Hi everyone,
I am having a strange occurrance with a customer. We have upgraded the class they are using to a newer version. Now they are getting an AuthenticationFailedException. There is no user/password being passed for authentication to the email server into javamail, nor was there one being passed to the old version. I have gotten a trace from their system, and I also got a trace from our system in order to compare the two, which is successful and also does not pass any user/password. Help is greatly appreciated.
Here is the successful trace(credentials altered for security):
FOLDER/DOC_OUTPUT_271064_000004.pdf
me@ourcompany.com
MAIL.OURSERVER.COM
me@ourcompany.com
25
true
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: useEhlo true, useAuth true
DEBUG: SMTPTransport trying to connect to host "MAIL.OURSERVER.COM", port 25
DEBUG SMTP RCVD: 220 DDI-SBS01.ddilink.local Microsoft ESMTP MAIL Service ready at Mon, 28 Dec 2009 15:47:48 -0500
DEBUG: SMTPTransport connected to host "MAIL.OURSERVER.COM", port: 25
DEBUG SMTP SENT: EHLO M520
DEBUG SMTP RCVD: 250-DDI-SBS01.ourcompany.local Hello [192.168.227.204]
250-SIZE 10485760
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-AUTH
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250 XEXCH50
DEBUG SMTP Found extension "SIZE", arg "10485760"
DEBUG SMTP Found extension "PIPELINING", arg ""
DEBUG SMTP Found extension "DSN", arg ""
DEBUG SMTP Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP Found extension "STARTTLS", arg ""
DEBUG SMTP Found extension "AUTH", arg ""
DEBUG SMTP Found extension "8BITMIME", arg ""
DEBUG SMTP Found extension "BINARYMIME", arg ""
DEBUG SMTP Found extension "CHUNKING", arg ""
DEBUG SMTP Found extension "XEXCH50", arg ""
DEBUG SMTP: Attempt to authenticate
DEBUG SMTP: use8bit false
DEBUG SMTP SENT: MAIL FROM:<me@ourcompany.com>
DEBUG SMTP RCVD: 250 2.1.0 Sender OK
DEBUG SMTP SENT: RCPT TO:<me@ourcompany.com>
DEBUG SMTP RCVD: 250 2.1.5 Recipient OK
Verified Addresses
me@ourcompany.com
DEBUG SMTP SENT: DATA
DEBUG SMTP RCVD: 354 Start mail input; end with <CRLF>.<CRLF>
DEBUG SMTP SENT:
.
DEBUG SMTP RCVD: 250 2.6.0 <312611490.1262033063299.JavaMail.me@M520> Queued mail for delivery
DEBUG SMTP SENT: QUIT
deleted files
Message sent Sucessfully
Here is the unsuccessful trace(again, credentials altered for security):
FOLDER/DOC_077081_000009.pdf
him@theircompany.com
0.0.0.0
him@theircompany.com
25
true
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: useEhlo true, useAuth true
DEBUG: SMTPTransport trying to connect to host "0.0.0.0", port 25
DEBUG SMTP RCVD: 220 mail2.theircompany.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.1830 ready at Wed, 23 Dec 2009 11:18:03 -0600
DEBUG: SMTPTransport connected to host "0.0.0.0", port: 25
DEBUG SMTP SENT: EHLO S10A4987.theircompany.com
DEBUG SMTP RCVD: 250-mail2.theircompany.com Hello [0.0.0.0]
250-TURN
250-SIZE
250-ETRN
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-8bitmime
250-BINARYMIME
250-CHUNKING
250-VRFY
250-X-EXPS GSSAPI NTLM LOGIN
250-X-EXPS=LOGIN
250-AUTH GSSAPI NTLM LOGIN
250-AUTH=LOGIN
250-X-LINK2STATE
250-XEXCH50
250 OK
DEBUG SMTP Found extension "TURN", arg ""
DEBUG SMTP Found extension "SIZE", arg ""
DEBUG SMTP Found extension "ETRN", arg ""
DEBUG SMTP Found extension "PIPELINING", arg ""
DEBUG SMTP Found extension "DSN", arg ""
DEBUG SMTP Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP Found extension "8bitmime", arg ""
DEBUG SMTP Found extension "BINARYMIME", arg ""
DEBUG SMTP Found extension "CHUNKING", arg ""
DEBUG SMTP Found extension "VRFY", arg ""
DEBUG SMTP Found extension "X-EXPS", arg "GSSAPI NTLM LOGIN"
DEBUG SMTP Found extension "X-EXPS=LOGIN", arg ""
DEBUG SMTP Found extension "AUTH", arg "GSSAPI NTLM LOGIN"
DEBUG SMTP Found extension "AUTH=LOGIN", arg ""
DEBUG SMTP Found extension "X-LINK2STATE", arg ""
DEBUG SMTP Found extension "XEXCH50", arg ""
DEBUG SMTP Found extension "OK", arg ""
DEBUG SMTP: Attempt to authenticate
DEBUG SMTP SENT: AUTH LOGIN
DEBUG SMTP RCVD: 334 VXNlcm5hbWU6
DEBUG SMTP SENT:
DEBUG SMTP RCVD: 334 VXNlcm5hbWU6
DEBUG SMTP SENT:
DEBUG SMTP RCVD: 334 VXNlcm5hbWU6
Failed to send, because of javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.AuthenticationFailedException