Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: Add info on passing log in credentials to configured SMTP server. #3061

Closed
kcondon opened this issue Apr 5, 2016 · 17 comments

Comments

@kcondon
Copy link
Contributor

kcondon commented Apr 5, 2016

A user installed Dataverse and wanted to use a third party email service that supports SMTP but requires log in credentials. We currently do not support this, this ticket is a request to implement it.
See RT 234442 for more information. The third party service is mailgun.org.

Update: This may be natively supported through additional properties in the Java mail client config. We'll confirm and close if that is the case.

It looks like this can be configured though admin console/ domain.xml:
http://www.hildeberto.com/2010/02/sending-e-mails-with-javamail-on-glassfish-v3.html

@kcondon kcondon added Type: Feature a feature request Status: Dev labels Apr 5, 2016
@pdurbin
Copy link
Member

pdurbin commented Apr 19, 2016

Someone popped into chat today and said at http://irclog.iq.harvard.edu/dataverse/2016-04-19#i_34377 that after initial trouble using Mailgun's SMTP server they got it all working by following http://osama-zienadden.blogspot.com/2012/01/how-to-send-e-mail-using-glassfish.html

There was much rejoicing!

@pdurbin pdurbin changed the title Email: Support passing log in credentials to condifgured SMTP server. Email: Support passing log in credentials to configured SMTP server. Apr 19, 2016
@djbrooke
Copy link
Contributor

So.... can we close it? Thanks!

@pdurbin @kcondon

@pdurbin
Copy link
Member

pdurbin commented Jul 29, 2016

https://help.hmdc.harvard.edu/Ticket/Display.html?id=234442 has been marked "resolved" so I vote we close it.

@djbrooke
Copy link
Contributor

Closed it!

@kcondon kcondon reopened this Sep 28, 2016
@kcondon
Copy link
Contributor Author

kcondon commented Sep 28, 2016

Add info on how to do this to the installation guide. Also, ideally, installer might ask whether logon is needed and update accordingly.

Put credentials info here: http://guides.dataverse.org/en/latest/installation/installation-main.html?highlight=smtp

Either of these links work:
http://www.hildeberto.com/2010/02/sending-e-mails-with-javamail-on-glassfish-v3.html
http://osama-zienadden.blogspot.com/2012/01/how-to-send-e-mail-using-glassfish.html

Have had several requests for this info, another being RT 241625

@kcondon kcondon changed the title Email: Support passing log in credentials to configured SMTP server. Documentation: Add info on passing log in credentials to configured SMTP server. Sep 28, 2016
@pdurbin
Copy link
Member

pdurbin commented Sep 28, 2016

I just added this issue to the long list at #2944.

@pdurbin
Copy link
Member

pdurbin commented Nov 29, 2016

Today someone asked about this at http://irclog.iq.harvard.edu/dataverse/2016-11-29#i_45534

@pdurbin
Copy link
Member

pdurbin commented May 31, 2017

@bsilverstein95 as we discussed, please take a look at http://osama-zienadden.blogspot.com/2012/01/how-to-send-e-mail-using-glassfish.html including adding these properties:

mali28

@pdurbin pdurbin added the Type: Suggestion an idea label Jun 25, 2017
@pdurbin
Copy link
Member

pdurbin commented Jun 26, 2017

As part of this, we should change MAIL_SERVER from mail.hmdc.harvard.edu to something less Harvard-specific such as smtp.gmail.com or whatever we can get to work. Places to change as of the v4.7 tag:

( @michbarsinai can we delete your asadmin-setup.sh script at https://github.com/IQSS/dataverse/blob/v4.7/scripts/setup/asadmin-setup.sh ? It hasn't been updated in over three years.)

@michbarsinai
Copy link
Member

michbarsinai commented Jun 26, 2017 via email

@pdurbin
Copy link
Member

pdurbin commented Jun 26, 2017

@michbarsinai yes. Please see the comment that was added to the top of your script three years ago:

# STOP!
# DO NOT ADD MORE ASADMIN COMMANDS TO THIS SCRIPT!
# IF YOU NEED TO ADD MORE GLASSFISH CONFIG SETTINGS, ADD THEM 
# TO THE ../installer/glassfish-setup.sh SCRIPT. 

😄

@michbarsinai
Copy link
Member

michbarsinai commented Jun 26, 2017 via email

@bsilverstein95
Copy link
Contributor

Just an update on this, I did manage to narrow down the necessary settings and fields for configuring Gmail SMTP on Dataverse reliably on @ferrys and my own machine(s). Google doesn't give a ton of information on the service but it's still free and still works!

Planning to document the setup process asap. 📝

@pdurbin
Copy link
Member

pdurbin commented Jun 26, 2017

@bsilverstein95 cool. At standup you said that you might not want to touch the installation script. That's fine. If so, please open a new issue to capture what I wrote about mail.hmdc.harvard.edu at #3061 (comment)

@pdurbin
Copy link
Member

pdurbin commented Jun 29, 2017

@bsilverstein95 great work! I made a small tweak at b737d63 but I'm moving this to QA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants