Mails to inactive users

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


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,


10/20/17 6:53 AM

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(
	at com.sun.mail.smtp.SMTPTransport.sendMessage(
	at org.simplejavamail.mailer.internal.mailsender.MailSender.sendMailClosure(
	at org.simplejavamail.mailer.internal.mailsender.MailSender.send(
	at org.simplejavamail.mailer.Mailer.sendMail(
	at org.simplejavamail.mailer.Mailer.sendMail(
	at com.triniforce.server.plugins.kernel.utils.MailSender.send(
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <>: 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

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

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());
println("One item has been removed from mailing queue");
Project Kaiser Team
1/9/19 12:41 PM Tobek

Problem still occurs in version 26.0.2911

Copyright(c) Triniforce 2006-2018
Created: Tobek 10/19/17 8:22 AM; Modified: Tobek 1/9/19 12:41 PM
This is print-friendly version of "Mails to inactive users".
Powered by Project Kaiser - Project management and issue tracking software