Dear Alan, Here is my local.cfg:- ####################### # EMAIL CONFIGURATION # #######################
# SMTP mail server (allows DSpace to send email notifications) mail.server = smtp.gmail.com # SMTP mail server authentication username and password (if required) mail.server.username = [email protected] mail.server.password = xxx # SMTP mail server alternate port (defaults to 25) mail.server.port = 587 # From address for mail # All mail from the DSpace site will use this 'from' address mail.from.address = [email protected] # When feedback is submitted via the Feedback form, it is sent to this address # Currently limited to one recipient! feedback.recipient = [email protected] # General site administration (Webmaster) e-mail mail.admin = [email protected] # Recipient for server errors and alerts (defaults to mail.admin) #alert.recipient = ${mail.admin} # Recipient for new user registration emails (defaults to unspecified) #registration.notify = mail.extraproperites = mail.smtp.starttls.enable=true ------------- snip --------------------- root@DSpace:/home/dspace/dspace-install/bin# ./dspace test-email About to send test email: - To: [email protected] - Subject: DSpace test email - Server: smtp.gmail.com Error sending email: - Error: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. x4sm35270976pgi.76 - gsmtp Please see the DSpace documentation for assistance. -------------------------------------------------------------------------------- Why is it still giving the Start TLS error ? Thank you, Ashim On Sun, 8 Mar 2020 at 13:26, Alan Orth <[email protected]> wrote: > Dear Ashim, > > It looks like Gmail isn't working on port 465 (can't connect), whereas > port 587 was working, but simply needed you to turn on STARTTLS. Try adding > this to your dspace.cfg: > > mail.extraproperties = mail.smtp.starttls.enable=true > > Regards, > > On Sun, Mar 8, 2020 at 8:26 AM Ashim Kapoor <[email protected]> > wrote: > >> >> Dear Ayuka, >> >> here is the snippet from my local.cfg >> >> ####################### >> # EMAIL CONFIGURATION # >> ####################### >> >> # SMTP mail server (allows DSpace to send email notifications) >> mail.server = smtp.gmail.com >> >> # SMTP mail server authentication username and password (if required) >> mail.server.username = [email protected] >> mail.server.password = yyy >> >> # SMTP mail server alternate port (defaults to 25) >> mail.server.port = 465 >> >> # From address for mail >> # All mail from the DSpace site will use this 'from' address >> mail.from.address = [email protected] >> >> # When feedback is submitted via the Feedback form, it is sent to this >> address >> # Currently limited to one recipient! >> feedback.recipient = [email protected] >> >> # General site administration (Webmaster) e-mail >> mail.admin = [email protected] >> >> # Recipient for server errors and alerts (defaults to mail.admin) >> #alert.recipient = ${mail.admin} >> >> # Recipient for new user registration emails (defaults to unspecified) >> #registration.notify = >> mail.extraproperites = mail.smtp.starttls.enable.true >> >> ######################## >> >> >> >> root@DSpace:/home/dspace/dspace-install/bin# ./dspace test-email >> >> About to send test email: >> - To: [email protected] >> - Subject: DSpace test email >> - Server: smtp.gmail.com >> >> Error sending email: >> - Error: javax.mail.SendFailedException: Send failure >> (javax.mail.MessagingException: Could not connect to SMTP host: >> smtp.gmail.com, port: 465, response: -1) >> >> Please see the DSpace documentation for assistance. >> >> >> >> root@DSpace:/home/dspace/dspace-install/bin# >> >> >> Many thanks for your help. >> Best, >> Ashim >> >> On Sat, 7 Mar 2020 at 21:57, Ayuka Phanuel <[email protected]> >> wrote: >> >>> And you have to add this to your local.cfg >>> mail.extraproperties = mail.smtp.starttls.enable=true >>> >>> >>> >>> On Sat, Mar 7, 2020 at 4:38 PM Ayuka Phanuel <[email protected]> >>> wrote: >>> >>>> While using port 587 ? >>>> >>>> -- >> All messages to this mailing list should adhere to the DuraSpace Code of >> Conduct: https://duraspace.org/about/policies/code-of-conduct/ >> --- >> You received this message because you are subscribed to the Google Groups >> "DSpace Technical Support" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/dspace-tech/CAGEJAoF--Rzcq3gMa7njMj1SgbMYvZbFDqBCsQTq2RCKUeQSvA%40mail.gmail.com >> <https://groups.google.com/d/msgid/dspace-tech/CAGEJAoF--Rzcq3gMa7njMj1SgbMYvZbFDqBCsQTq2RCKUeQSvA%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > > > -- > Alan Orth > [email protected] > https://picturingjordan.com > https://englishbulgaria.net > https://mjanja.ch > -- All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/ --- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/CAGEJAoFyd2hyLqRW79nCD1hswcVQtd%2Bf%2B%2B%2BYnP5B1eCYyA4b2Q%40mail.gmail.com.
