Re: [Dspace-tech] Dspace User registration, password reset and feedback not working DSpace3.3 XMLUI

2015-06-23 Thread Mark H. Wood
On Tue, Jun 23, 2015 at 02:30:24PM +0600, Md. Ataur Rahman wrote:
 Hello,
 
 I have installed DSpace 3.3 on a brand new Debian wheeze machine with
 XMLUI. All things are working ok except user registration, Feedback and
 reset user password etc. I have configured postfix with gmail which is also
 working fine. My email configuration on dspace.cfg is as follows-
 
 
 # SMTP mail server
 
 # mail.server = smtp.example.com
 
 mail.server = smtp.gmail.com
 
 # SMTP mail server authentication username and password (if required)
 
 #mail.server.username =
 
 #mail.server.password =
 
 mail.server.username = x...@gmail.com
 
 mail.server.password = VCC
 
 # SMTP mail server alternate port (defaults to 25)
 
 # mail.server.port = 25
 
 mail.server.port = 587
 
 --
 
 # the key and the value. For example:
 
 mail.extraproperties = mail.smtp.socketFactory.port=587, \
 
 
 mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory,
 \
 
mail.smtp.socketFactory.fallback=false

These properties combine to force the use of SMTP-in-TLS.  That is:
the mailer will first try to establish a TLS session and then run an
SMTP session inside of it.

But you specified port 587, which expects to establish an SMTP session
first.  It can use the SMTP STARTTLS verb to perform upward
negotiation and carry out the actual SMTP transactions in a TLS
session.

In short:  I think your port and class here are incompatible.

 The Error message for user registration is as follows:-
 
 Register an account to subscribe to collections for email updates, and
 submit new items to DSpace.
 
1. Email Address:
 
 This address will be verified and used as your login name. * Unable to send
 email to this address.
 
 
 
  The output of the command -- ./dspace dsrun org.dspace.core.Email
 
  INFO [main] (DSpaceKernelInit.java:52) - Created new kernel:
 DSpaceKernel:org.dspace:name=0f2e2427-bac7-4e06-85fa-36ce88d721f9,type=DSpaceKernel:lastLoad=null:loadTim
 
 e=0:running=false:kernel=null
 
  INFO [main] (ConfigurationManager.java:1224) - Loading from classloader:
 file:/soft/dspace/config/dspace.cfg
 
  INFO [main] (ConfigurationManager.java:1224) - Using dspace provided log
 configuration (log.init.config)
 
  INFO [main] (ConfigurationManager.java:1224) - Loading:
 /soft/dspace/config/log4j.properties
 
 About to send test email:
 
  - To: ataurb...@gmail.com
 
  - Subject: DSpace test email
 
  - Server: smtp.gmail.com
 
 Error sending email:
 
  - Error: javax.mail.MessagingException: Exception reading response;
 
   nested exception is:
 
 javax.net.ssl.SSLException: Unrecognized SSL message, plaintext
 connection?

This shows that DSpace tried to start a TLS session, but the other end
responded with plaintext, which result is what the above-described
mismatch should produce.

If you want SMTP-in-TLS, use SSLSocketFactory and submission port 465.
If you want plain SMTP, use the default socket factory and submission
port 587.  If you want plain SMTP with STARTTLS, also set
mail.smtp.starttls.enable=true.

My guess is that you want SMTP-in-TLS and that this would work:

  mail.extraproperties = mail.smtp.sslEnable = true, \
 mail.smtp.socketFactory.port=465

But I have not tried that combination.

 Is there any way to create and manage user through command line?

There is a 'dspace user' command in v5.x, but I don't think it was
available in v3.3.

-- 
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu


signature.asc
Description: Digital signature
--
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical  virtual servers, alerts via email  sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] Dspace User registration, password reset and feedback not working DSpace3.3 XMLUI

2015-06-23 Thread Md. Ataur Rahman
Hello,

I have installed DSpace 3.3 on a brand new Debian wheeze machine with
XMLUI. All things are working ok except user registration, Feedback and
reset user password etc. I have configured postfix with gmail which is also
working fine. My email configuration on dspace.cfg is as follows-


# SMTP mail server

# mail.server = smtp.example.com

mail.server = smtp.gmail.com

# SMTP mail server authentication username and password (if required)

#mail.server.username =

#mail.server.password =

mail.server.username = x...@gmail.com

mail.server.password = VCC

# SMTP mail server alternate port (defaults to 25)

# mail.server.port = 25

mail.server.port = 587

--

# the key and the value. For example:

mail.extraproperties = mail.smtp.socketFactory.port=587, \


mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory,
\

   mail.smtp.socketFactory.fallback=false



The Error message for user registration is as follows:-

Register an account to subscribe to collections for email updates, and
submit new items to DSpace.

   1. Email Address:

This address will be verified and used as your login name. * Unable to send
email to this address.



 The output of the command -- ./dspace dsrun org.dspace.core.Email

 INFO [main] (DSpaceKernelInit.java:52) - Created new kernel:
DSpaceKernel:org.dspace:name=0f2e2427-bac7-4e06-85fa-36ce88d721f9,type=DSpaceKernel:lastLoad=null:loadTim

e=0:running=false:kernel=null

 INFO [main] (ConfigurationManager.java:1224) - Loading from classloader:
file:/soft/dspace/config/dspace.cfg

 INFO [main] (ConfigurationManager.java:1224) - Using dspace provided log
configuration (log.init.config)

 INFO [main] (ConfigurationManager.java:1224) - Loading:
/soft/dspace/config/log4j.properties

About to send test email:

 - To: ataurb...@gmail.com

 - Subject: DSpace test email

 - Server: smtp.gmail.com

Error sending email:

 - Error: javax.mail.MessagingException: Exception reading response;

  nested exception is:

javax.net.ssl.SSLException: Unrecognized SSL message, plaintext
connection?

Please see the DSpace documentation for assistance.



The output of ./dspace shows-

- test-email: Test the DSpace email server settings are OK



Is there any way to create and manage user through command line?
Please help me to solve the problem.
--
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical  virtual servers, alerts via email  sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette