HI,

Thank you for pointing out the error.

Yes, I haven't changed mail.server.port = 25 as SMTP mail server alternate
port (defaults to 25).
Should I replace that port with 465, as written in the following part,

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


Regards,
sanjib k deka


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

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

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

# From address for mail
mail.from.address = [email protected]

# Currently limited to one recipient!
feedback.recipient = [email protected]

# General site administration (Webmaster) e-mail
mail.admin = [email protected]

# Recipient for server errors and alerts
alert.recipient =

# Recipient for new user registration emails
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 = localhost

# 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


On Fri, May 24, 2013 at 6:08 PM, helix84 <[email protected]> wrote:

> On Fri, May 24, 2013 at 2:28 PM, SanjibKumarDeka <[email protected]> wrote:
> > I have already gone through the Stuart's post and set as per the
> instructions.
>
> No, you haven't. Stuart's post doesn't say anything about setting port
> to 25, because a different port is used and set elsewhere. But you
> still have in your configuration:
>
> mail.server.port = 25
>
> Here you can see your DSpace trying to connect to port 25, which is wrong:
>
> > Error sending email:
> >  - Error: javax.mail.MessagingException: Could not connect to SMTP host:
> smtp.gmail.com, port: 25;
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_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