How to configure smtp email settings in dspace 6

3,497 views
Skip to first unread message

Sunakshi Tejwani

unread,
Jun 6, 2017, 7:20:56 AM6/6/17
to DSpace Technical Support
Hey Everyone

I want to set-up the smtp email configuration in the dspace 6.
What changes were made?
1.) Edited file dspace.cfg

##### Email settings ######

# 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 =sunakshitejwani@gmail.com
mail
.server.password =dspace

# 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 = sunakshitejwani@gmail.com    

# Name of a pre-configured Session object to be fetched from a directory.
# This overrides the Session settings above.  If none can be found, then DSpace
# will use the above settings to create a Session.
#mail.session.name = Session

# When feedback is submitted via the Feedback form, it is sent to this address
# Currently limited to one recipient!
feedback
.recipient = dspace-help@myu.edu

# General site administration (Webmaster) e-mail
# System notifications/reports and other sysadmin emails are sent to this address
mail
.admin = sunakshitejwani@gmail.com

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

# Set the default mail character set. This may be overridden by providing a line
# inside the email template "charset: <encoding>", otherwise this default is used.
mail
.charset = UTF-8

# A comma-separated list of hostnames that are allowed to refer browsers to email forms.
# Default behaviour is to accept referrals only from dspace.hostname
mail
.allowed.referrers = ${dspace.hostname}

# Pass extra settings to the Java mail library. Comma-separated, equals sign between
# the key and the value. For example:
mail
.extraproperties = mail.smtp.socketFactory.port=465, \
                       mail
.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory, \
                       mail
.smtp.socketFactory.fallback=false

# An option is added to disable the mailserver. By default, this property is set to false
# By setting mail.server.disabled = true, DSpace will not send out emails.
# It will instead log the subject of the email which should have been sent
# This is especially useful for development and test environments where production data is used when testing functionality.


#mail.server.disabled = false


But i am unable to register a new user through a gmail account in dspace.


2.) install smtp using the command
sudo apt-get install msmtp

But still is doesnt work
The error message is ::
unable to send message to this address.

Jose Miguel Ravasi

unread,
Apr 23, 2018, 11:22:11 AM4/23/18
to DSpace Technical Support
Hola
La configuración se hace en el /dspace-target/config/local.cfg
Yo lo uso con estos parámetros y funciona perfectamente
Espero te ayude
Saludos

Jose M Ravasi
RINFI
Fac. Ingeniería UNMDP

#######################
# 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 = myus...@fi.mdp.edu.ar
mail.server.password = mypassw_in


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


# From address for mail
# All mail from the DSpace site will use this 'from' address
mail.from.address = ri...@fi.mdp.edu.ar


# When feedback is submitted via the Feedback form, it is sent to this address
# Currently limited to one recipient!
feedback.recipient = ri...@fi.mdp.edu.ar



# General site administration (Webmaster) e-mail
mail.admin = ri...@fi.mdp.edu.ar
Reply all
Reply to author
Forward
0 new messages