|
Description
|
Operating System: Any O/S and AIX at customer setup.
Product Name: java mail API
Product version: 1.3.1 and also with the latest available 1.3.3_01.
Short description: java mail not sending all emails when one of the email is invalid receiver on the same SMTP e-mail server.
Full problem description: When there is an invalid email in the recipients list all recipients are not getting email if the bad address of recipient is pointed to the same mail server or it has invalid internet address. Used attached test case with test.bat and sample to reproduce the problem.
This problem is seen only when the bad email address is the same as the SMTP server is pointed to.
Test case: Attached. The Javamail lib files are from Javamail 1.3.1.
We tested the same test case with 1.3.3_01 also and reproduced the problem.
Steps to run the Test Case :
-------------------------------------
java sendEmail hanwk-mail1.sfbay.sun.com UserID Password " xxxxx@xxxxx -mail1.sfbay.sun.com; xxxxx@xxxxx -mail1.sfbay.sun.com" SenderID 1
Where hanwk-mail1.sfbay.sun.com=Mail Server
xxxxx@xxxxx -mail1.sfbay.sun.com = Correct Mail-ID
xxxxx@xxxxx -mail1.sfbay.sun.com = Wrong E-Mail ID
Result : The program is not sending E-mail to correct E-mail ID. So if effect if there is one wrong receipient pointed to same E-mail server, then none of the receipients in the list are receiving the E-mail.
Program throws Exception as below :
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
class com.sun.mail.smtp.SMTPSendFailedException: 550 5.1.1 unknown or illegal alias: xxxxx@xxxxx -mail1.sfbay.sun.com
Logs At Customer Set-up :
-------------------------------------
DEBUG: getProvider() returning
javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth false
DEBUG: SMTPTransport trying to connect to host "striper", port 25
DEBUG SMTP RCVD: 220 striper.remedy.com ESMTP Sendmail
8.11.7p1+Sun/8.11.7; Fri, 21 Oct 2005 13:29:37 -0700 (PDT)
DEBUG: SMTPTransport connected to host "striper", port: 25
DEBUG SMTP SENT: EHLO striper
DEBUG SMTP RCVD: 250-striper.remedy.com Hello striper [10.50.30.108],
pleased to meet you
250-ENHANCEDSTATUSCODES
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ONEX
250-ETRN
250-XUSR
250 HELP
DEBUG SMTP Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP Found extension "EXPN", arg ""
DEBUG SMTP Found extension "VERB", arg ""
DEBUG SMTP Found extension "8BITMIME", arg ""
DEBUG SMTP Found extension "SIZE", arg ""
DEBUG SMTP Found extension "DSN", arg ""
DEBUG SMTP Found extension "ONEX", arg ""
DEBUG SMTP Found extension "ETRN", arg ""
DEBUG SMTP Found extension "XUSR", arg ""
DEBUG SMTP Found extension "HELP", arg ""
DEBUG: getProvider() returning
javax.mail.Provider[STORE,mbox,gnu.mail.providers.mbox.MboxStore, xxxxx@xxxxx
.org]
mbox: creating /var/mail/ARSystem.lock
mbox: reading /var/mail/ARSystem
mbox: saving /var/mail/ARSystem
mbox: removing /var/mail/ARSystem.lock
DEBUG SMTP: use8bit false
DEBUG SMTP SENT: MAIL FROM:< xxxxx@xxxxx >
DEBUG SMTP RCVD: 250 2.1.0 < xxxxx@xxxxx >... Sender ok
DEBUG SMTP SENT: RCPT TO:<alfred_langen@bmc.com>
DEBUG SMTP RCVD: 250 2.1.5 <alfred_langen@bmc.com>... Recipient ok
DEBUG SMTP SENT: RCPT TO:<alfred.langen>
DEBUG SMTP RCVD: 550 5.1.1 <alfred.langen>... User unknown
DEBUG SMTP SENT: RCPT TO:<alfred_langen@striper.bmc.com>
DEBUG SMTP RCVD: 250 2.1.5 <alfred_langen@striper.bmc.com>... Recipient
ok
DEBUG SMTP SENT: RCPT TO:< xxxxx@xxxxx >
DEBUG SMTP RCVD: 250 2.1.5 < xxxxx@xxxxx >... Recipient ok
DEBUG SMTP SENT: RCPT TO:<alfred_langen@striper.remedy.com>
DEBUG SMTP RCVD: 550 5.1.1 <alfred_langen@striper.remedy.com>... User
unknown
Valid Unsent Addresses
alfred_langen@bmc.com
alfred_langen@striper.bmc.com
xxxxx@xxxxx
Invalid Addresses
alfred.langen
alfred_langen@striper.remedy.com
DEBUG SMTPTransport: Sending failed because of invalid destination
addresses
DEBUG SMTP SENT: RSET
DEBUG SMTP RCVD: 250 2.0.0 Reset state
Oct 21, 2005 1:29:38 PM com.remedy.arsys.emaildaemon.ReceiverModule
initializeIncommingMailbox
INFO: Incoming message queue size: 0
Oct 21, 2005 1:29:38 PM com.remedy.arsys.emaildaemon.ReceiverModule
terminateIncommingMailbox
INFO: Incoming message queue size: 0
DEBUG SMTP SENT: QUIT
Oct 21, 2005 1:29:40 PM com.sun.mail.smtp.SMTPTransport rcptTo
SEVERE: Invalid Addresses;
nested exception is:
class javax.mail.SendFailedException: 550 5.1.1
<alfred.langen>... User unknown
;
nested exception is:
class javax.mail.SendFailedException: 550 5.1.1
<alfred_langen@striper.remedy.com>... User unknown
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
class javax.mail.SendFailedException: 550 5.1.1
<alfred.langen>... User unknown
;
nested exception is:
class javax.mail.SendFailedException: 550 5.1.1
<alfred_langen@striper.remedy.com>... User unknown
at
com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:848)
at
com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:323)
at
com.remedy.arsys.emaildaemon.SenderModule.sendMessage(SenderModule.java:
74)
at
com.remedy.arsys.emaildaemon.CreatorModule.createMessage(CreatorModule.j
ava:1468)
at
com.remedy.arsys.emaildaemon.CreatorModule.doWork(CreatorModule.java:360
)
at
com.remedy.arsys.emaildaemon.ThreadBase.run(ThreadBase.java:268)
at java.lang.Thread.run(Thread.java:534)
Posted Date : 2005-11-15 01:40:18.0
|