I was trying to configure my gmail account as admin. my dspace.cfg looks
like this:

# SMTP mail server
mail.server = smtp.gmail.com

# SMTP mail server authentication username and password (if required)
mail.server.username = [email protected]
mail.server.password = password.of.my.gmail.ac

# SMTP mail server alternate port (defaults to 25)
mail.server.port = 465

# Recipient for new user registration emails
registration.notify = [email protected]
mail.charset = UTF-8

mail.allowed.referrers = localhost
mail.extraproperties = mail.smtp.socketFactory.port=465, \
mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory, \
                       mail.smtp.socketFactory.fallback=false
mail.server.disabled = false
default.language = en_US

But whenever a new user registers, there is an error and my log file reads
like this:

2013-05-07 11:53:48,171 INFO  org.dspace.app.webui.servlet.RegisterServlet
@ anonymous:session_id=AB658FFDEB01EB592D20F56C8ACA1953:ip_addr=127.0.0.1:
error_emailing:[email protected]
*javax.mail.MessagingException*: Exception reading response;
  nested exception is:
    javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target
    at
com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1260)
    at
com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
    at javax.mail.Service.connect(Service.java:297)

I read online about *javax.mail.MessagingException* and I read about the
following possibilities:
1. port 465 is closed. (I ran netsat -a to find the used ports but it was
not listed there)

2. missing jar files in WEB-INF/lib. I downloaded the jar
files<http://www.oracle.com/technetwork/java/javamail/index-138643.html>and
put them in tomcat webapps/jspui/WEB-INF/lib

It still doesn't work. I am using dspace1.8.2 with tomcat 7.0.30 on a
network with no proxy.

Much Thanks for reply!

-- 
Divya Gandhi
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to