Mails to inactive users

# > Public Section (English) > Support > Mails to inactive users

Description


Hello PK Team,

We have discovered that PK is trying to send notification emails to users which are deleted. It is very problematic if user address was removed. PK is trying to deliver messages to non existing emails and it hangs in endless loop of re-sending messages. After some time whole mail delivery system stops and no more emails are send until messages are received.

Do you have any idea for workaround for this problem?

Best regards,

Comments

10/20/17 6:53 AM maxim.ge

You are right, will fix in coming build (in few days)

Project Kaiser Team
8/6/18 12:13 PM Tobek

In version 24.0 this problem also occures when email account was closed faster than PK user account. We got following callstack:

at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1294)
	at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:635)
	at org.simplejavamail.mailer.internal.mailsender.MailSender.sendMailClosure(MailSender.java:206)
	at org.simplejavamail.mailer.internal.mailsender.MailSender.send(MailSender.java:172)
	at org.simplejavamail.mailer.Mailer.sendMail(Mailer.java:332)
	at org.simplejavamail.mailer.Mailer.sendMail(Mailer.java:323)
	at com.triniforce.server.plugins.kernel.utils.MailSender.send(MailSender.java:67)
	at com.triniforce.server.plugins.kernel.services.Mailer.send(Mailer.java:201)
	at com.triniforce.server.plugins.kernel.services.Mailer.doCycle(Mailer.java:231)
	at com.triniforce.server.plugins.kernel.services.ICycledThreadLogic$Runner.runCTL(ICycledThreadLogic.java:58)
	at com.triniforce.server.plugins.kernel.services.Service.runAndCatchProblems(Service.java:110)
	at com.triniforce.server.plugins.kernel.services.Service.run(Service.java:137)
	at java.lang.Thread.run(Thread.java:745)
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <user@company.com>: Recipient address rejected: User unknown

And in the result whole email sending is locked until PK is restarted.

8/6/18 1:01 PM Tobek

In some cases restart does not help. We must create fake account on our server and we need to receive all messages from PK and then it is working normally.

8/6/18 1:07 PM maxim.ge

Yes, indeed, still might happen. Sorry for inconvinience, thanks for reporting, will try to fix.

Project Kaiser Team
9/19/18 6:10 AM Tobek

Is there any update for this issue?

10/5/18 3:49 PM maxim.ge

As a work around you can run the following script, it removes current item from mailer queue:

IDbQueue mailerQueue = IDbQueueFactory.Helper.getQueue(ReservedKeys.SRV_MAILER.getKey());
mailerQueue.get(0);
println("One item has been removed from mailing queue");
Project Kaiser Team
Copyright(c) Triniforce 2006-2018
Created: Tobek 10/19/17 8:22 AM; Modified: maxim.ge 10/5/18 3:49 PM
This is print-friendly version of "Mails to inactive users".
Powered by Project Kaiser - Project management and issue tracking software
User:Guest