mail server office365.com

96 views
Skip to first unread message

francesco

unread,
Jan 12, 2019, 9:23:20 AM1/12/19
to DSpace Technical Support

Hi, anybody succesful with configuring email settings with office365.com ?

 

mail.server = smtp.office365.com

 

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

mail.server.username = us...@domain.com

mail.server.password = password

 

# SMTP mail server alternate port (defaults to 25)

mail.server.port = 587

 

I have tried to enable starttls with the following

mail.extraproperties=mail.smtp.starttls.required = true, \

mail.smtp.auth=true

 

at least now I get a new error:

535 5.7.3 Authentication unsuccessful [AM6P193CA0138.EURP193.PROD.OUTLOOK.COM]

 

Maybe I’m close to the solution, but I can’t see it,

Any help would be appreciated

Thanks

Good day.

Fra

 

Mark H. Wood

unread,
Jan 14, 2019, 11:07:54 AM1/14/19
to DSpace Technical Support
On Saturday, January 12, 2019 at 9:23:20 AM UTC-5, francesco wrote:

Hi, anybody succesful with configuring email settings with office365.com ?

 

mail.server = smtp.office365.com

 

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

mail.server.username = us...@domain.com

mail.server.password = password

 

# SMTP mail server alternate port (defaults to 25)

mail.server.port = 587

 

I have tried to enable starttls with the following

mail.extraproperties=mail.smtp.starttls.required = true, \

mail.smtp.auth=true

 

at least now I get a new error:

535 5.7.3 Authentication unsuccessful [AM6P193CA0138.EURP193.PROD.OUTLOOK.COM]




For "authentication unsuccessful" I would first check that the values of mail.server.username and mail.server.password are correct.  It seems that you are connecting to the proper service and SMTP is working, but the credentials are not accepted.

francesco chiurco

unread,
Feb 3, 2019, 6:33:47 AM2/3/19
to Mark H. Wood, DSpace Technical Support
Thank you Marc, your reply made me think atout possibile misconfigurations. i found an entry in dspace.cf used in the past That Was overriding My new username in local.cfg
> --
> All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/
> ---
> You received this message because you are subscribed to a topic in the Google Groups "DSpace Technical Support" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/dspace-tech/iMdojwAxOAs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to dspace-tech...@googlegroups.com.
> To post to this group, send email to dspac...@googlegroups.com.
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.

Alan Orth

unread,
Feb 13, 2019, 3:59:34 AM2/13/19
to francesco chiurco, Mark H. Wood, DSpace Technical Support
Dear list,

Having just gone through this issue myself, I thought I'd share my experiences. We are using DSpace 5.8 with OpenJDK 8. If your organization is using Office 365 you will need to reconfigure the following mail settings in dspace.cfg:

mail.server = smtp.office365.com
mail.server.port = 587
mail.extraproperties = mail.smtp.starttls.enable=true

Note that you do not need to use any of the socketFactory settings (see the JavaMail common mistakes guide listing these as unnecessary since at least 2015[0]). You only need to enable the extra property for STARTTLS. Also of use is the Microsoft Office 365 documentation about "client send" support in their SMTP support[1].

Perhaps we should remove the antiquated settings from dspace.cfg? Shall I file a bug for this?

Regards,


You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.

To post to this group, send email to dspac...@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


--
Alan Orth
alan...@gmail.com
https://picturingjordan.com
https://englishbulgaria.net
https://mjanja.ch
"In heaven all the interesting people are missing." ―Friedrich Nietzsche

Joelton Silva R. Correia

unread,
Sep 20, 2020, 4:48:31 PM9/20/20
to DSpace Technical Support
Solved? Like?
Reply all
Reply to author
Forward
0 new messages