Hmm,

Did you enable the account to be used by applications? Google requires this:

https://support.google.com/accounts/answer/6010255?hl=en

Or direct link:

https://www.google.com/settings/security/lesssecureapps

Otherwise the account can't be used by third party applications (such as
DSpace).



2017-03-14 9:42 GMT-01:00 Ribin Jones <[email protected]>:

> Yes. I did try with 587 and 465.
>
> - Ribin
>
> On Tuesday, 14 March 2017 14:20:21 UTC+5:30, Ribin Jones wrote:
>
>> Hi all,
>>
>> Recently installed dspace 5.2 in Ubuntu 16.04. I get "Internal System
>> Error" while trying to register a new user. I am using smtp.gmail.com in
>> dspace.cfg. Below is the log. I get smtp.example.com in the log. I am
>> not sure why.
>>
>>
>> 2017-03-14 01:35:51,590 INFO  org.dspace.app.webui.servlet.RegisterServlet
>> @ anonymous:session_id=3050128C4988794BFEC4CE9D33A83C4C:ip_
>> addr=10.10.49.12:error_emailing:[email protected]
>> javax.mail.MessagingException: Unknown SMTP host: *smtp.example.com
>> <http://smtp.example.com>;*
>>   nested exception is:
>>         java.net.UnknownHostException: smtp.example.com
>>         at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.
>> java:1959)
>>         at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTranspor
>> t.java:654)
>>         at javax.mail.Service.connect(Service.java:317)
>>         at javax.mail.Service.connect(Service.java:176)
>>         at javax.mail.Service.connect(Service.java:125)
>>         at javax.mail.Transport.send0(Transport.java:194)
>>         at javax.mail.Transport.send(Transport.java:124)
>>         at org.dspace.core.Email.send(Email.java:360)
>>         at org.dspace.eperson.AccountServiceImpl.sendEmail(AccountServi
>> ceImpl.java:265)
>>         at org.dspace.eperson.AccountServiceImpl.sendInfo(AccountServic
>> eImpl.java:225)
>>         at org.dspace.eperson.AccountServiceImpl.sendRegistrationInfo(A
>> ccountServiceImpl.java:70)
>>         at org.dspace.app.webui.servlet.RegisterServlet.processEnterEma
>> il(RegisterServlet.java:276)
>>         at org.dspace.app.webui.servlet.RegisterServlet.doDSPost(Regist
>> erServlet.java:188)
>>         at org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DS
>> paceServlet.java:122)
>>         at org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServ
>> let.java:80)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>> lter(ApplicationFilterChain.java:292)
>>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>> licationFilterChain.java:207)
>>         at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilte
>> r.java:52)
>>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>> lter(ApplicationFilterChain.java:240)
>>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>> licationFilterChain.java:207)
>>         at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(
>> DSpaceWebappServletFilter.java:78)
>>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>> lter(ApplicationFilterChain.java:240)
>>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>> licationFilterChain.java:207)
>>         at org.apache.catalina.core.StandardWrapperValve.invoke(Standar
>> dWrapperValve.java:212)
>>         at org.apache.catalina.core.StandardContextValve.invoke(Standar
>> dContextValve.java:94)
>>         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(A
>> uthenticatorBase.java:504)
>>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHo
>> stValve.java:141)
>>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo
>> rtValve.java:79)
>>         at org.apache.catalina.valves.AbstractAccessLogValve.invoke(Abs
>> tractAccessLogValve.java:620)
>>         at org.apache.catalina.core.StandardEngineValve.invoke(Standard
>> EngineValve.java:88)
>>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd
>> apter.java:509)
>>         at org.apache.coyote.http11.AbstractHttp11Processor.process(Abs
>> tractHttp11Processor.java:1104)
>>         at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler
>> .process(AbstractProtocol.java:684)
>>         at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun
>> (NioEndpoint.java:1524)
>>         at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(
>> NioEndpoint.java:1480)
>>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>> Executor.java:1142)
>>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
>> lExecutor.java:617)
>>         at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.
>> run(TaskThread.java:61)
>>         at java.lang.Thread.run(Thread.java:745)
>> Caused by: java.net.UnknownHostException: smtp.example.com
>>         at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocket
>> Impl.java:184)
>>         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
>>         at java.net.Socket.connect(Socket.java:589)
>>         at java.net.Socket.connect(Socket.java:538)
>>         at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.
>> java:321)
>>         at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.
>> java:237)
>>         at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.
>> java:1927)
>>         ... 40 more
>>
>> Any help, please?
>>
>> - Ribin
>>
> --
> You received this message because you are subscribed to the Google Groups
> "DSpace Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/dspace-community.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-community.
For more options, visit https://groups.google.com/d/optout.

Reply via email to