Projects tigase _server tigase-extras Issues #1
SendFailedException: Invalid Addresses; (#1)
wojciech.kapcia@tigase.net opened 5 years ago

Gracefully handle:

2019-08-06 05:49:37.186 [jabber:iq:register Queue Worker 0]  Mailer.sendMail()     WARNING:  Can't send mail
javax.mail.SendFailedException: Invalid Addresses;
  nested exception is:
	com.sun.mail.smtp.SMTPAddressFailedException: 501 Invalid RCPT TO address provided

	at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1950)
	at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1195)
	at javax.mail.Transport.send0(Transport.java:254)
	at javax.mail.Transport.send(Transport.java:202)
	at tigase.extras.mailer.Mailer.sendMail(Mailer.java:114)
	at tigase.extras.mailer.Mailer.sendMail(Mailer.java:91)
	at tigase.extras.AbstractEmailSender.sendMail(AbstractEmailSender.java:54)
	at tigase.extras.emailconfirm.EmailConfirmationSender.sendToken(EmailConfirmationSender.java:134)
	at tigase.extras.emailconfirm.EmailConfirmationSender.sendAccountValidation(EmailConfirmationSender.java:88)
	at tigase.xmpp.impl.JabberIqRegister.createAccount(JabberIqRegister.java:464)
	at tigase.xmpp.impl.JabberIqRegister.doRegisterNewAccount(JabberIqRegister.java:708)
	at tigase.xmpp.impl.JabberIqRegister.process(JabberIqRegister.java:338)
	at tigase.server.xmppsession.SessionManager$ProcessorWorkerThread.process(SessionManager.java:2625)
	at tigase.util.processing.WorkerThread.run(WorkerThread.java:67)
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 501 Invalid RCPT TO address provided

	at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1803)
	at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1195)
	at javax.mail.Transport.send0(Transport.java:254)
	at javax.mail.Transport.send(Transport.java:202)
	at tigase.extras.mailer.Mailer.sendMail(Mailer.java:114)
	at tigase.extras.mailer.Mailer.sendMail(Mailer.java:91)
	at tigase.extras.AbstractEmailSender.sendMail(AbstractEmailSender.java:54)
	at tigase.extras.emailconfirm.EmailConfirmationSender.sendToken(EmailConfirmationSender.java:134)
	at tigase.extras.emailconfirm.EmailConfirmationSender.sendAccountValidation(EmailConfirmationSender.java:88)
	at tigase.xmpp.impl.JabberIqRegister.createAccount(JabberIqRegister.java:464)
	at tigase.xmpp.impl.JabberIqRegister.doRegisterNewAccount(JabberIqRegister.java:708)
	at tigase.xmpp.impl.JabberIqRegister.process(JabberIqRegister.java:338)
	at tigase.server.xmppsession.SessionManager$ProcessorWorkerThread.process(SessionManager.java:2625)
	at tigase.util.processing.WorkerThread.run(WorkerThread.java:67)


2019-08-06 05:49:37.188 [jabber:iq:register Queue Worker 0]  AbstractEmailSender.sendMail()  FINE: Failed to send email to jahanger, message: Hi!

Click link

https://tigase.im/rest/user/confirm/AWFtRm9ZVzVuWlhKQWFtRmlZbVZ5TG5SdlpHRjUAMTU2NTA3MDU3Njk1NABwd2VQdHZjTGRiUWVncms4dmY0ZmduRDJCK2M9

to enable account jahanger@jabber.today
tigase.extras.mailer.MailerException: javax.mail.SendFailedException: Invalid Addresses;
  nested exception is:
	com.sun.mail.smtp.SMTPAddressFailedException: 501 Invalid RCPT TO address provided

	at tigase.extras.mailer.Mailer.sendMail(Mailer.java:118)
	at tigase.extras.mailer.Mailer.sendMail(Mailer.java:91)
	at tigase.extras.AbstractEmailSender.sendMail(AbstractEmailSender.java:54)
	at tigase.extras.emailconfirm.EmailConfirmationSender.sendToken(EmailConfirmationSender.java:134)
	at tigase.extras.emailconfirm.EmailConfirmationSender.sendAccountValidation(EmailConfirmationSender.java:88)
	at tigase.xmpp.impl.JabberIqRegister.createAccount(JabberIqRegister.java:464)
	at tigase.xmpp.impl.JabberIqRegister.doRegisterNewAccount(JabberIqRegister.java:708)
	at tigase.xmpp.impl.JabberIqRegister.process(JabberIqRegister.java:338)
	at tigase.server.xmppsession.SessionManager$ProcessorWorkerThread.process(SessionManager.java:2625)
	at tigase.util.processing.WorkerThread.run(WorkerThread.java:67)
Caused by: javax.mail.SendFailedException: Invalid Addresses;
  nested exception is:
	com.sun.mail.smtp.SMTPAddressFailedException: 501 Invalid RCPT TO address provided

	at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1950)
	at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1195)
	at javax.mail.Transport.send0(Transport.java:254)
	at javax.mail.Transport.send(Transport.java:202)
	at tigase.extras.mailer.Mailer.sendMail(Mailer.java:114)
	at tigase.extras.mailer.Mailer.sendMail(Mailer.java:91)
	at tigase.extras.AbstractEmailSender.sendMail(AbstractEmailSender.java:54)
	at tigase.extras.emailconfirm.EmailConfirmationSender.sendToken(EmailConfirmationSender.java:134)
	at tigase.extras.emailconfirm.EmailConfirmationSender.sendAccountValidation(EmailConfirmationSender.java:88)
	at tigase.xmpp.impl.JabberIqRegister.createAccount(JabberIqRegister.java:464)
	at tigase.xmpp.impl.JabberIqRegister.doRegisterNewAccount(JabberIqRegister.java:708)
	at tigase.xmpp.impl.JabberIqRegister.process(JabberIqRegister.java:338)
	at tigase.server.xmppsession.SessionManager$ProcessorWorkerThread.process(SessionManager.java:2625)
	at tigase.util.processing.WorkerThread.run(WorkerThread.java:67)
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 501 Invalid RCPT TO address provided

	at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1803)
	at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1195)
	at javax.mail.Transport.send0(Transport.java:254)
	at javax.mail.Transport.send(Transport.java:202)
	at tigase.extras.mailer.Mailer.sendMail(Mailer.java:114)
	at tigase.extras.mailer.Mailer.sendMail(Mailer.java:91)
	at tigase.extras.AbstractEmailSender.sendMail(AbstractEmailSender.java:54)
	at tigase.extras.emailconfirm.EmailConfirmationSender.sendToken(EmailConfirmationSender.java:134)
	at tigase.extras.emailconfirm.EmailConfirmationSender.sendAccountValidation(EmailConfirmationSender.java:88)
	at tigase.xmpp.impl.JabberIqRegister.createAccount(JabberIqRegister.java:464)
	at tigase.xmpp.impl.JabberIqRegister.doRegisterNewAccount(JabberIqRegister.java:708)
	at tigase.xmpp.impl.JabberIqRegister.process(JabberIqRegister.java:338)
	at tigase.server.xmppsession.SessionManager$ProcessorWorkerThread.process(SessionManager.java:2625)
	at tigase.util.processing.WorkerThread.run(WorkerThread.java:67)
2019-08-06 05:49:37.188 [jabber:iq:register Queue Worker 0]  EmailConfirmationSender.sendToken()  WARNING: Cannot send confirmation mail
tigase.extras.mailer.MailerException: javax.mail.SendFailedException: Invalid Addresses;
  nested exception is:
	com.sun.mail.smtp.SMTPAddressFailedException: 501 Invalid RCPT TO address provided

	at tigase.extras.mailer.Mailer.sendMail(Mailer.java:118)
	at tigase.extras.mailer.Mailer.sendMail(Mailer.java:91)
	at tigase.extras.AbstractEmailSender.sendMail(AbstractEmailSender.java:54)
	at tigase.extras.emailconfirm.EmailConfirmationSender.sendToken(EmailConfirmationSender.java:134)
	at tigase.extras.emailconfirm.EmailConfirmationSender.sendAccountValidation(EmailConfirmationSender.java:88)
	at tigase.xmpp.impl.JabberIqRegister.createAccount(JabberIqRegister.java:464)
	at tigase.xmpp.impl.JabberIqRegister.doRegisterNewAccount(JabberIqRegister.java:708)
	at tigase.xmpp.impl.JabberIqRegister.process(JabberIqRegister.java:338)
	at tigase.server.xmppsession.SessionManager$ProcessorWorkerThread.process(SessionManager.java:2625)
	at tigase.util.processing.WorkerThread.run(WorkerThread.java:67)
Caused by: javax.mail.SendFailedException: Invalid Addresses;
  nested exception is:
	com.sun.mail.smtp.SMTPAddressFailedException: 501 Invalid RCPT TO address provided

	at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1950)
	at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1195)
	at javax.mail.Transport.send0(Transport.java:254)
	at javax.mail.Transport.send(Transport.java:202)
	at tigase.extras.mailer.Mailer.sendMail(Mailer.java:114)
	at tigase.extras.mailer.Mailer.sendMail(Mailer.java:91)
	at tigase.extras.AbstractEmailSender.sendMail(AbstractEmailSender.java:54)
	at tigase.extras.emailconfirm.EmailConfirmationSender.sendToken(EmailConfirmationSender.java:134)
	at tigase.extras.emailconfirm.EmailConfirmationSender.sendAccountValidation(EmailConfirmationSender.java:88)
	at tigase.xmpp.impl.JabberIqRegister.createAccount(JabberIqRegister.java:464)
	at tigase.xmpp.impl.JabberIqRegister.doRegisterNewAccount(JabberIqRegister.java:708)
	at tigase.xmpp.impl.JabberIqRegister.process(JabberIqRegister.java:338)
	at tigase.server.xmppsession.SessionManager$ProcessorWorkerThread.process(SessionManager.java:2625)
	at tigase.util.processing.WorkerThread.run(WorkerThread.java:67)
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 501 Invalid RCPT TO address provided

	at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1803)
	at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1195)
	at javax.mail.Transport.send0(Transport.java:254)
	at javax.mail.Transport.send(Transport.java:202)
	at tigase.extras.mailer.Mailer.sendMail(Mailer.java:114)
	at tigase.extras.mailer.Mailer.sendMail(Mailer.java:91)
	at tigase.extras.AbstractEmailSender.sendMail(AbstractEmailSender.java:54)
	at tigase.extras.emailconfirm.EmailConfirmationSender.sendToken(EmailConfirmationSender.java:134)
	at tigase.extras.emailconfirm.EmailConfirmationSender.sendAccountValidation(EmailConfirmationSender.java:88)
	at tigase.xmpp.impl.JabberIqRegister.createAccount(JabberIqRegister.java:464)
	at tigase.xmpp.impl.JabberIqRegister.doRegisterNewAccount(JabberIqRegister.java:708)
	at tigase.xmpp.impl.JabberIqRegister.process(JabberIqRegister.java:338)
	at tigase.server.xmppsession.SessionManager$ProcessorWorkerThread.process(SessionManager.java:2625)
	at tigase.util.processing.WorkerThread.run(WorkerThread.java:67)
issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/tigase-extras#1
Please wait...
Page is in error, reload to recover