Unable to send mail

260 views
Skip to first unread message

David Tan

unread,
Aug 20, 2022, 11:13:38 AM8/20/22
to DSpace Technical Support
Hi,
I am new to Dspace Cris7 and having some trouble getting Dspace to send out mail. I manage to setup Postfix and it work fine. However when I try to register as a new user, Dspace says the email is send out succesfully. However after checking Dpsace log, I get this error

2022-08-20 15:04:01,721 ERROR 735b7f75-b394-496b-bf8c-a58e27bc87d1 5d7b922f-acb2-49c4-8921-44baa71850e9 org.dspace.app.rest.repository.RegistrationRestRepository @ Something went wrong with sending registration info email: Joh...@gmail.com
com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. h196-20020a6283cd000000b005367043e163sm202084pfe.28 - gsmtp

I would appreicate anyone that can point me to where I can set the STARTTLS. 

Thank you
David

gonza...@gmail.com

unread,
May 10, 2023, 1:23:46 PM5/10/23
to DSpace Technical Support
As this is the most recent question about this error, I'll post here how I solved this. Just add this setting to your config file (local.cfg):
mail.extraproperties = mail.smtp.starttls.enable=true

Regards,
Gonzalo
Reply all
Reply to author
Forward
0 new messages