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

Document JavaMail config for AWS SES email #4969

Closed
kcondon opened this issue Aug 16, 2018 · 2 comments
Closed

Document JavaMail config for AWS SES email #4969

kcondon opened this issue Aug 16, 2018 · 2 comments
Assignees

Comments

@kcondon
Copy link
Contributor

kcondon commented Aug 16, 2018

See RT 26574:

This is the configuration that worked for me finally.

/opt/glassfish4/glassfish/bin/asadmin create-javamail-resource --mailhost email-smtp.us-east-1.amazonaws.com --mailuser awstest --fromaddress <***> --transprotocol aws --transprotocolclass com.amazonaws.services.simpleemail.AWSJavaMailTransport --property mail.smtp.auth=true:mail.smtp.user=< aws_access_key >:mail.smtp.password=< aws_secret_key >:mail.transport.protocol=smtp:mail.smtp.port=587:mail.smtp.starttls.enable=true mail/notifyMailSession

The configured dataverse support email should be verified in aws ses.

@qqmyers
Copy link
Member

qqmyers commented Aug 21, 2018

FWIW: QDR's setup somewhat differently on AWS (showing the excerpt from domain.xml rather than the asadmin call to create it, <* *> surround values I've removed):

 <mail-resource host="email-smtp.us-east-1.amazonaws.com" from="<*x@y*>" user="<*name*>" jndi-name="mail/notifyMailSession">
      <property name="mail.smtps.user" value="<*name*>"></property>
      <property name="mail.smtp.socketFactory.fallback" value="false"></property>
      <property name="mail.smtp.socketFactory.class" value="javax.net.ssl.SSLSocketFactory"></property>
      <property name="mail.transport.protocol" value="smtps"></property>
      <property name="mail.smtps.ssl.enable" value="true"></property>
      <property name="mail.smtp.starttls.enable" value="true"></property>
      <property name="mail.smtps.password" value="<*password*>"></property>
      <property name="mail.smtp.port" value="465"></property>
      <property name="mail.smtp.socketFactory.port" value="465"></property>
      <property name="mail.smtps.auth" value="true"></property>
    </mail-resource>

@pdurbin
Copy link
Member

pdurbin commented Sep 10, 2018

Pull request #5039 looks fine to me. Off to QA.

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

No branches or pull requests

5 participants