I recently upgraded to DSpace 6 and have noticed different behavior with respect to email configuration as seen in DSpace 5.
I'm using a trusted and open SMTP relay which doesn't require authentication. Therefore, I have mail.server populated and mail.server.username and mail.server.password commented out (in DSpace 5, these could simply be left blank).
When I test the email configuration, the response is positive and the email appears in my inbox:
./dspace test-email
About to send test email:
- To: jshe...@ksu.edu
- Subject: DSpace test email
- Server: (my SMTP server address)
Email sent successfully!
However, workflow tasks will not deliver email, but log errors akin to the following:
2020-02-03 09:11:49,354 WARN org.dspace.workflowbasic.BasicWorkflowServiceImpl @ jshe...@k-state.edu:session_id=AF8FE128AE418F4C52CA462EF2BCE798:ip_addr=(address removed):notify_of_reject:cannot email user eperson_id=(eperson UUID removed) eperson_email=jshe...@k-state.edu workflow_item_id=20928\colon; Send failure (javax.mail.AuthenticationFailedException\colon; null)
Any suggestions? I have tried a number of combinations (including mail.server = localhost for Postfix to handle) and would expect this to work without issue as it did in the past. Always the same error.
-Jeff
That's what make this so curious: That the test-email command will result in a successfully delivered email and the lack of any discernible notifications in any logs which reveal problems or association with this issue (including no other WARN or ERROR entries).
I haven't head any issues with email between DSpace 1.x - 5.x. Only 6.
-Jeff
________________________________________
From: Tim Donohue <tim.d...@lyrasis.org>
Sent: Monday, February 3, 2020 1:38 PM
To: Jeffrey Sheldon; dspac...@googlegroups.com
Subject: Re: Workflow email notices rejected
The admin. email address and the workflow address are different. My
only guess is that the authentication rules for ksu.edu are different
from those for k-state.edu even though they are MXed to the same place.