Hi Divya

Are the required ports open on your server and institutional firewall?
See: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Firewall
And: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Prepare_Ubuntu/S07

The above are based on an Ubuntu 10.04 LTS server.

Cheers

hg


On 7 May 2013 08:45, Divya Gandhi <[email protected]> wrote:

> 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
>



-- 
*Hilton Gibson*
Systems Administrator
JS Gericke Library
Room 1025C
Stellenbosch University
Private Bag X5036
Stellenbosch
7599
South Africa

Tel: +27 21 808 4100 | Cell: +27 84 646 4758
http://library.sun.ac.za
http://scholar.sun.ac.za
http://ar1.sun.ac.za
http://aj1.sun.ac.za
------------------------------------------------------------------------------
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